Mercurial > libavcodec.hg
changeset 7391:f04e3411ef31 libavcodec
indent
author | michael |
---|---|
date | Fri, 25 Jul 2008 12:26:24 +0000 |
parents | 7abedf6425d8 |
children | 95787edebd24 |
files | h264.c |
diffstat | 1 files changed, 14 insertions(+), 14 deletions(-) [+] |
line wrap: on
line diff
--- 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){