Commit fa6a6c59 authored by Michael Niedermayer's avatar Michael Niedermayer

Remove redundant code.

Originally committed as revision 14541 to svn://svn.ffmpeg.org/ffmpeg/trunk
parent 7762cc3d
......@@ -917,10 +917,6 @@ static inline void direct_ref_list_init(H264Context * const h){
int list, i, j;
int sidx= s->picture_structure&1;
int ref1sidx= ref1->reference&1;
if(cur->pict_type == FF_I_TYPE)
cur->ref_count[sidx][0] = 0;
if(cur->pict_type != FF_B_TYPE)
cur->ref_count[sidx][1] = 0;
for(list=0; list<2; list++){
cur->ref_count[sidx][list] = h->ref_count[list];
for(j=0; j<h->ref_count[list]; j++)
......
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