Mercurial > libavcodec.hg
comparison h264.c @ 7483:edea5d7db24d libavcodec
Remove redundant code.
author | michael |
---|---|
date | Mon, 04 Aug 2008 22:52:54 +0000 |
parents | ecf3c774f5e1 |
children | 74f16dd7abc6 |
comparison
equal
deleted
inserted
replaced
7482:ecf3c774f5e1 | 7483:edea5d7db24d |
---|---|
915 Picture * const ref1 = &h->ref_list[1][0]; | 915 Picture * const ref1 = &h->ref_list[1][0]; |
916 Picture * const cur = s->current_picture_ptr; | 916 Picture * const cur = s->current_picture_ptr; |
917 int list, i, j; | 917 int list, i, j; |
918 int sidx= s->picture_structure&1; | 918 int sidx= s->picture_structure&1; |
919 int ref1sidx= ref1->reference&1; | 919 int ref1sidx= ref1->reference&1; |
920 if(cur->pict_type == FF_I_TYPE) | |
921 cur->ref_count[sidx][0] = 0; | |
922 if(cur->pict_type != FF_B_TYPE) | |
923 cur->ref_count[sidx][1] = 0; | |
924 for(list=0; list<2; list++){ | 920 for(list=0; list<2; list++){ |
925 cur->ref_count[sidx][list] = h->ref_count[list]; | 921 cur->ref_count[sidx][list] = h->ref_count[list]; |
926 for(j=0; j<h->ref_count[list]; j++) | 922 for(j=0; j<h->ref_count[list]; j++) |
927 cur->ref_poc[sidx][list][j] = h->ref_list[list][j].poc; | 923 cur->ref_poc[sidx][list][j] = h->ref_list[list][j].poc; |
928 } | 924 } |