nutdec: print error on invalid/unsupported fourcc style
authorMichael Niedermayer <michaelni@gmx.at>
Mon, 4 Mar 2013 15:49:17 +0000 (16:49 +0100)
committerMichael Niedermayer <michaelni@gmx.at>
Mon, 4 Mar 2013 15:49:17 +0000 (16:49 +0100)
Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
libavformat/nutdec.c

index f260a3e..90afbdb 100644 (file)
@@ -73,8 +73,10 @@ static uint64_t get_fourcc(AVIOContext *bc)
         return avio_rl16(bc);
     else if (len == 4)
         return avio_rl32(bc);
-    else
+    else {
+        av_log(NULL, AV_LOG_ERROR, "Unsupported fourcc length %d\n", len);
         return -1;
+    }
 }
 
 #ifdef TRACE