oggdec: print error on unsupported versions
authorMichael Niedermayer <michaelni@gmx.at>
Fri, 4 May 2012 11:48:58 +0000 (13:48 +0200)
committerMichael Niedermayer <michaelni@gmx.at>
Fri, 4 May 2012 12:40:22 +0000 (14:40 +0200)
Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
libavformat/oggdec.c

index 4eaae2d..e93a689 100644 (file)
@@ -239,8 +239,10 @@ static int ogg_read_page(AVFormatContext *s, int *str)
         return AVERROR_INVALIDDATA;
     }
 
-    if (avio_r8(bc) != 0)      /* version */
+    if (avio_r8(bc) != 0){      /* version */
+        av_log (s, AV_LOG_ERROR, "ogg page, unsupported version\n");
         return AVERROR_INVALIDDATA;
+    }
 
     flags = avio_r8(bc);
     gp = avio_rl64 (bc);