mirror of
https://git.ffmpeg.org/ffmpeg.git
synced 2024-12-13 18:55:08 +00:00
Do not attempt to decode RV30/40 B-frames without anchors.
This fixes issue 747. Originally committed as revision 16031 to svn://svn.ffmpeg.org/ffmpeg/trunk
This commit is contained in:
parent
2014b51cae
commit
0dfcc36818
@ -1406,6 +1406,8 @@ int ff_rv34_decode_frame(AVCodecContext *avctx,
|
||||
}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)
|
||||
|
Loading…
Reference in New Issue
Block a user