mirror of
https://git.videolan.org/git/ffmpeg.git
synced 2024-09-09 01:07:01 +02:00
h264: check that DPB is allocated before accessing it in flush_dpb()
This commit is contained in:
parent
d0a863ac89
commit
555000c7d5
@ -2623,8 +2623,9 @@ static void flush_dpb(AVCodecContext *avctx)
|
|||||||
|
|
||||||
flush_change(h);
|
flush_change(h);
|
||||||
|
|
||||||
for (i = 0; i < MAX_PICTURE_COUNT; i++)
|
if (h->DPB)
|
||||||
unref_picture(h, &h->DPB[i]);
|
for (i = 0; i < MAX_PICTURE_COUNT; i++)
|
||||||
|
unref_picture(h, &h->DPB[i]);
|
||||||
h->cur_pic_ptr = NULL;
|
h->cur_pic_ptr = NULL;
|
||||||
unref_picture(h, &h->cur_pic);
|
unref_picture(h, &h->cur_pic);
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user