diff --git a/cmdutils.c b/cmdutils.c
index e5142e6453a77095bc76cf7093608e44e31e7e4b..1c2f44ef3c2d6610229ddadb59135c6cdfa2e263 100644
--- a/cmdutils.c
+++ b/cmdutils.c
@@ -141,7 +141,7 @@ void print_error(const char *filename, int err)
     case AVERROR(ENOMEM):
         fprintf(stderr, "%s: memory allocation error occured\n", filename);
         break;
-    case AVERROR_NOENT:
+    case AVERROR(ENOENT):
         fprintf(stderr, "%s: no such file or directory\n", filename);
         break;
     default: