Mercurial > libavcodec.hg
comparison h264.c @ 4388:3451831c6962 libavcodec
adding assert to protect delayed_pic
author | michael |
---|---|
date | Tue, 23 Jan 2007 12:45:57 +0000 |
parents | 9cebff821565 |
children | 3afddc65631b |
comparison
equal
deleted
inserted
replaced
4387:05ab6e897ffd | 4388:3451831c6962 |
---|---|
8339 s->low_delay = 0; | 8339 s->low_delay = 0; |
8340 } | 8340 } |
8341 | 8341 |
8342 pics = 0; | 8342 pics = 0; |
8343 while(h->delayed_pic[pics]) pics++; | 8343 while(h->delayed_pic[pics]) pics++; |
8344 | |
8345 assert(pics+1 < sizeof(h->delayed_pic) / sizeof(h->delayed_pic[0])); | |
8346 | |
8344 h->delayed_pic[pics++] = cur; | 8347 h->delayed_pic[pics++] = cur; |
8345 if(cur->reference == 0) | 8348 if(cur->reference == 0) |
8346 cur->reference = 1; | 8349 cur->reference = 1; |
8347 | 8350 |
8348 cross_idr = 0; | 8351 cross_idr = 0; |