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

kostya subversion
Sun Dec 7 17:30:08 CET 2008


Author: kostya
Date: Sun Dec  7 17:30:08 2008
New Revision: 16031

Log:
Do not attempt to decode RV30/40 B-frames without anchors.

This fixes issue 747.


Modified:
   trunk/libavcodec/rv34.c

Modified: trunk/libavcodec/rv34.c
==============================================================================
--- trunk/libavcodec/rv34.c	(original)
+++ trunk/libavcodec/rv34.c	Sun Dec  7 17:30:08 2008
@@ -1406,6 +1406,8 @@ int ff_rv34_decode_frame(AVCodecContext 
             }else
                 r->si.end = si.start;
         }
+        if(!i && si.type == FF_B_TYPE && (!s->last_picture_ptr || !s->last_picture_ptr->data[0]))
+            return -1;
         last = rv34_decode_slice(r, r->si.end, buf + offset, size);
         s->mb_num_left = r->s.mb_x + r->s.mb_y*r->s.mb_width - r->si.start;
         if(last)




More information about the ffmpeg-cvslog mailing list