forked from FFmpeg/FFmpeg
direcdec: fix infinite loop
Fixes Ticket1156 Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
This commit is contained in:
parent
7a3df014b9
commit
6a052e64b5
1 changed files with 1 additions and 1 deletions
|
@ -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);
|
||||
|
|
Loading…
Add table
Reference in a new issue