adding assert to protect delayed_pic

Originally committed as revision 7661 to svn://svn.ffmpeg.org/ffmpeg/trunk
pull/126/head
Michael Niedermayer 18 years ago
parent 6847e61af3
commit 9170e34537
  1. 3
      libavcodec/h264.c

@ -8341,6 +8341,9 @@ static int decode_frame(AVCodecContext *avctx,
pics = 0;
while(h->delayed_pic[pics]) pics++;
assert(pics+1 < sizeof(h->delayed_pic) / sizeof(h->delayed_pic[0]));
h->delayed_pic[pics++] = cur;
if(cur->reference == 0)
cur->reference = 1;

Loading…
Cancel
Save