Commit e42301f3 authored by michael's avatar michael

10000l


git-svn-id: file:///var/local/repositories/ffmpeg/trunk@2665 9553f0bf-9b14-0410-a0b8-cfaf0461ba5b
parent af1f1539
...@@ -922,6 +922,11 @@ static int dvvideo_decode_frame(AVCodecContext *avctx, ...@@ -922,6 +922,11 @@ static int dvvideo_decode_frame(AVCodecContext *avctx,
int ds, vs; int ds, vs;
const uint16_t *mb_pos_ptr; 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); s->sys = dv_frame_profile(buf);
if (!s->sys || buf_size < s->sys->frame_size) if (!s->sys || buf_size < s->sys->frame_size)
return -1; /* NOTE: we only accept several full frames */ return -1; /* NOTE: we only accept several full frames */
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment