From: Michael Niedermayer Date: Sun, 4 Jan 2004 19:49:57 +0000 (+0000) Subject: 10000l X-Git-Tag: v0.5~15538 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=ac548c5d1d130608f4efc606f5997fb53512e5a4;p=platform%2Fupstream%2Flibav.git 10000l Originally committed as revision 2665 to svn://svn.ffmpeg.org/ffmpeg/trunk --- diff --git a/libavcodec/dv.c b/libavcodec/dv.c index 4821660..8e041b5 100644 --- a/libavcodec/dv.c +++ b/libavcodec/dv.c @@ -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)