Commit f76ce3d3 authored by michael's avatar michael

Fill ref_count/ref_poc for both fields of frames.


git-svn-id: file:///var/local/repositories/ffmpeg/trunk@14540 9553f0bf-9b14-0410-a0b8-cfaf0461ba5b
parent 54887f4a
......@@ -926,6 +926,10 @@ static inline void direct_ref_list_init(H264Context * const h){
for(j=0; j<h->ref_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++){
......
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