mirror of
https://github.com/FFmpeg/FFmpeg.git
synced 2025-03-23 04:24:35 +02:00
vc1dec: drop damaged B frames
Fixes: vc1_error_spilt.avi of Ticket606 Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
This commit is contained in:
parent
7d52f46db7
commit
9e794d103c
@ -5719,6 +5719,8 @@ static int vc1_decode_frame(AVCodecContext *avctx, void *data,
|
||||
//av_log(s->avctx, AV_LOG_INFO, "Consumed %i/%i bits\n", get_bits_count(&s->gb), s->gb.size_in_bits);
|
||||
// if (get_bits_count(&s->gb) > buf_size * 8)
|
||||
// return -1;
|
||||
if(s->error_occurred & s->pict_type == AV_PICTURE_TYPE_B)
|
||||
goto err;
|
||||
ff_er_frame_end(s);
|
||||
}
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user