[Ffmpeg-cvslog] r5613 - trunk/libavcodec/cavs.c

michael subversion
Tue Jul 4 19:08:36 CEST 2006


Author: michael
Date: Tue Jul  4 19:08:35 2006
New Revision: 5613

Modified:
   trunk/libavcodec/cavs.c

Log:
return -1 on bitstream errors instead of continuing, as the following stuff almost always will be useless until the next startcode


Modified: trunk/libavcodec/cavs.c
==============================================================================
--- trunk/libavcodec/cavs.c	(original)
+++ trunk/libavcodec/cavs.c	Tue Jul  4 19:08:35 2006
@@ -897,7 +897,7 @@
     pred_mode_uv = get_ue_golomb(gb);
     if(pred_mode_uv > 6) {
         av_log(h->s.avctx, AV_LOG_ERROR, "illegal intra chroma pred mode\n");
-        pred_mode_uv = 0;
+        return -1;
     }
 
     /* save pred modes before they get modified */




More information about the ffmpeg-cvslog mailing list