[FFmpeg-cvslog] r17201 - trunk/libavcodec/rv34.c

kostya subversion
Fri Feb 13 08:06:36 CET 2009


Author: kostya
Date: Fri Feb 13 08:06:36 2009
New Revision: 17201

Log:
In RV3/4 nonzero MB offset for the first slice also indicates error

Modified:
   trunk/libavcodec/rv34.c

Modified: trunk/libavcodec/rv34.c
==============================================================================
--- trunk/libavcodec/rv34.c	Fri Feb 13 08:06:35 2009	(r17200)
+++ trunk/libavcodec/rv34.c	Fri Feb 13 08:06:36 2009	(r17201)
@@ -1402,7 +1402,7 @@ int ff_rv34_decode_frame(AVCodecContext 
         return -1;
     }
     init_get_bits(&s->gb, buf+get_slice_offset(avctx, slices_hdr, 0), buf_size-get_slice_offset(avctx, slices_hdr, 0));
-    if(r->parse_slice_header(r, &r->s.gb, &si) < 0){
+    if(r->parse_slice_header(r, &r->s.gb, &si) < 0 || si.start){
         av_log(avctx, AV_LOG_ERROR, "First slice header is incorrect\n");
         return -1;
     }




More information about the ffmpeg-cvslog mailing list