Commit 66ce282d authored by Michael Niedermayer's avatar Michael Niedermayer

h264: clean all non null elements of delayed_pic[]

Signed-off-by: 's avatarMichael Niedermayer <michaelni@gmx.at>
parent b955ab2f
......@@ -2241,7 +2241,7 @@ static void idr(H264Context *h){
static void flush_dpb(AVCodecContext *avctx){
H264Context *h= avctx->priv_data;
int i;
for(i=0; i<MAX_DELAYED_PIC_COUNT; i++) {
for(i=0; i<=MAX_DELAYED_PIC_COUNT; i++) {
if(h->delayed_pic[i])
h->delayed_pic[i]->f.reference = 0;
h->delayed_pic[i]= 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