Commit b9be16c0 authored by michael's avatar michael

adding assert to protect delayed_pic


git-svn-id: file:///var/local/repositories/ffmpeg/trunk@7661 9553f0bf-9b14-0410-a0b8-cfaf0461ba5b
parent 60d12e4b
...@@ -8341,6 +8341,9 @@ static int decode_frame(AVCodecContext *avctx, ...@@ -8341,6 +8341,9 @@ static int decode_frame(AVCodecContext *avctx,
pics = 0; pics = 0;
while(h->delayed_pic[pics]) pics++; while(h->delayed_pic[pics]) pics++;
assert(pics+1 < sizeof(h->delayed_pic) / sizeof(h->delayed_pic[0]));
h->delayed_pic[pics++] = cur; h->delayed_pic[pics++] = cur;
if(cur->reference == 0) if(cur->reference == 0)
cur->reference = 1; cur->reference = 1;
......
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