[FFmpeg-cvslog] r14540 - trunk/libavcodec/h264.c

michael subversion
Tue Aug 5 00:32:41 CEST 2008


Author: michael
Date: Tue Aug  5 00:32:41 2008
New Revision: 14540

Log:
Fill ref_count/ref_poc for both fields of frames.


Modified:
   trunk/libavcodec/h264.c

Modified: trunk/libavcodec/h264.c
==============================================================================
--- trunk/libavcodec/h264.c	(original)
+++ trunk/libavcodec/h264.c	Tue Aug  5 00:32:41 2008
@@ -926,6 +926,10 @@ static inline void direct_ref_list_init(
         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++){




More information about the ffmpeg-cvslog mailing list