Commit 555000c7 authored by Anton Khirnov's avatar Anton Khirnov

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

parent d0a863ac
......@@ -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;
......
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