Revision 285b570f

View differences:

libavcodec/h264.c
3909 3909
static void flush_dpb(AVCodecContext *avctx){
3910 3910
    H264Context *h= avctx->priv_data;
3911 3911
    int i;
3912
    for(i=0; i<16; i++)
3912
    for(i=0; i<16; i++) {
3913
        if(h->delayed_pic[i])
3914
            h->delayed_pic[i]->reference= 0;
3913 3915
        h->delayed_pic[i]= NULL;
3916
    }
3917
    if(h->delayed_output_pic)
3918
        h->delayed_output_pic->reference= 0;
3914 3919
    h->delayed_output_pic= NULL;
3915 3920
    idr(h);
3916 3921
    if(h->s.current_picture_ptr)

Also available in: Unified diff