]> git.sesse.net Git - ffmpeg/commitdiff
10000l
authorMichael Niedermayer <michaelni@gmx.at>
Sun, 4 Jan 2004 19:49:57 +0000 (19:49 +0000)
committerMichael Niedermayer <michaelni@gmx.at>
Sun, 4 Jan 2004 19:49:57 +0000 (19:49 +0000)
Originally committed as revision 2665 to svn://svn.ffmpeg.org/ffmpeg/trunk

libavcodec/dv.c

index 48216603a05dbdfb88cb6e3a170f8da86f6b31fa..8e041b503950345f90620f2095709454ef1375c1 100644 (file)
@@ -921,6 +921,11 @@ static int dvvideo_decode_frame(AVCodecContext *avctx,
     DVVideoDecodeContext *s = avctx->priv_data;
     int ds, vs;
     const uint16_t *mb_pos_ptr;
+  
+    *data_size=0;
+    /* special case for last picture */
+    if(buf_size==0)
+        return 0;
     
     s->sys = dv_frame_profile(buf);
     if (!s->sys || buf_size < s->sys->frame_size)