# HG changeset patch # User michael # Date 1216988784 0 # Node ID f04e3411ef31e0687051a5b6d048ba5da16bcff7 # Parent 7abedf6425d81a66605d7a9b3816431a347621d0 indent diff -r 7abedf6425d8 -r f04e3411ef31 h264.c --- a/h264.c Fri Jul 25 12:25:28 2008 +0000 +++ b/h264.c Fri Jul 25 12:26:24 2008 +0000 @@ -3567,20 +3567,20 @@ "in complementary field pair " "(first field is long term)\n"); } else { - pic= remove_short(h, s->current_picture_ptr->frame_num); - if(pic){ - unreference_pic(h, pic, 0); - av_log(h->s.avctx, AV_LOG_ERROR, "illegal short term buffer state detected\n"); - } - - if(h->short_ref_count) - memmove(&h->short_ref[1], &h->short_ref[0], h->short_ref_count*sizeof(Picture*)); - - h->short_ref[0]= s->current_picture_ptr; - h->short_ref[0]->long_ref=0; - h->short_ref_count++; - s->current_picture_ptr->reference |= s->picture_structure; - } + pic= remove_short(h, s->current_picture_ptr->frame_num); + if(pic){ + unreference_pic(h, pic, 0); + av_log(h->s.avctx, AV_LOG_ERROR, "illegal short term buffer state detected\n"); + } + + if(h->short_ref_count) + memmove(&h->short_ref[1], &h->short_ref[0], h->short_ref_count*sizeof(Picture*)); + + h->short_ref[0]= s->current_picture_ptr; + h->short_ref[0]->long_ref=0; + h->short_ref_count++; + s->current_picture_ptr->reference |= s->picture_structure; + } } if (h->long_ref_count + h->short_ref_count > h->sps.ref_frame_count){