# HG changeset patch # User michael # Date 1217889161 0 # Node ID ecf3c774f5e108a6b9abd574b4daf1acef6384f8 # Parent ca205cc577349f38670d61c3b17bac9f31819d85 Fill ref_count/ref_poc for both fields of frames. diff -r ca205cc57734 -r ecf3c774f5e1 h264.c --- a/h264.c Mon Aug 04 21:45:05 2008 +0000 +++ b/h264.c Mon Aug 04 22:32:41 2008 +0000 @@ -926,6 +926,10 @@ for(j=0; jref_count[list]; j++) cur->ref_poc[sidx][list][j] = h->ref_list[list][j].poc; } + if(s->picture_structure == PICT_FRAME){ + memcpy(cur->ref_count[0], cur->ref_count[1], sizeof(cur->ref_count[0])); + memcpy(cur->ref_poc [0], cur->ref_poc [1], sizeof(cur->ref_poc [0])); + } if(cur->pict_type != FF_B_TYPE || h->direct_spatial_mv_pred) return; for(list=0; list<2; list++){