1
0
mirror of https://github.com/FFmpeg/FFmpeg.git synced 2024-12-23 12:43:46 +02:00

h264: check that DPB is allocated before accessing it in flush_dpb()

This commit is contained in:
Anton Khirnov 2013-03-10 23:28:31 +01:00
parent d0a863ac89
commit 555000c7d5

View File

@ -2623,6 +2623,7 @@ static void flush_dpb(AVCodecContext *avctx)
flush_change(h);
if (h->DPB)
for (i = 0; i < MAX_PICTURE_COUNT; i++)
unref_picture(h, &h->DPB[i]);
h->cur_pic_ptr = NULL;