diff --git a/cmdutils.c b/cmdutils.c
index 592d52a94a3a727da952428f865b9ae526e5a89a..7a58cead8de2f2c8a47e3651f5d0bd02bf2acbe1 100644
--- a/cmdutils.c
+++ b/cmdutils.c
@@ -294,9 +294,9 @@ void print_error(const char *filename, int err)
     char errbuf[128];
     const char *errbuf_ptr = errbuf;
 
-        if (av_strerror(err, errbuf, sizeof(errbuf)) < 0)
-            errbuf_ptr = strerror(AVUNERROR(err));
-        fprintf(stderr, "%s: %s\n", filename, errbuf_ptr);
+    if (av_strerror(err, errbuf, sizeof(errbuf)) < 0)
+        errbuf_ptr = strerror(AVUNERROR(err));
+    fprintf(stderr, "%s: %s\n", filename, errbuf_ptr);
 }
 
 #define PRINT_LIB_VERSION(outstream,libname,LIBNAME,indent)             \