summaryrefslogtreecommitdiff
path: root/libavcodec/dv.c
diff options
context:
space:
mode:
authorMichael Niedermayer <michaelni@gmx.at>2004-01-04 19:49:57 +0000
committerMichael Niedermayer <michaelni@gmx.at>2004-01-04 19:49:57 +0000
commitac548c5d1d130608f4efc606f5997fb53512e5a4 (patch)
tree9407c5d486d883acac34896ba934ba03ed9dbae2 /libavcodec/dv.c
parent96b73a2ada3b44fe7439a5f7b172ea10f8896808 (diff)
10000l
Originally committed as revision 2665 to svn://svn.ffmpeg.org/ffmpeg/trunk
Diffstat (limited to 'libavcodec/dv.c')
-rw-r--r--libavcodec/dv.c5
1 files changed, 5 insertions, 0 deletions
diff --git a/libavcodec/dv.c b/libavcodec/dv.c
index 48216603a0..8e041b5039 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)