Commit 6a052e64 authored by Michael Niedermayer's avatar Michael Niedermayer

direcdec: fix infinite loop

Fixes Ticket1156
Signed-off-by: 's avatarMichael Niedermayer <michaelni@gmx.at>
parent 7a3df014
......@@ -1870,7 +1870,7 @@ static int dirac_decode_frame(AVCodecContext *avctx, void *data, int *data_size,
}
if (!s->current_picture)
return 0;
return buf_size;
if (s->current_picture->avframe.display_picture_number > s->frame_number) {
DiracFrame *delayed_frame = remove_frame(s->delay_frames, s->frame_number);
......
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