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

heydowns subversion
Tue Nov 6 19:48:18 CET 2007


Author: heydowns
Date: Tue Nov  6 19:48:18 2007
New Revision: 10937

Log:
Fix poc for field pictures. Prior to this, the poc of the second field 
in decoding order would always be assigned to a field pair's poc.

Original thread: H.264: Fix poc for field pairs, 6 Nov 2007 17:41:02



Modified:
   trunk/libavcodec/h264.c

Modified: trunk/libavcodec/h264.c
==============================================================================
--- trunk/libavcodec/h264.c	(original)
+++ trunk/libavcodec/h264.c	Tue Nov  6 19:48:18 2007
@@ -3767,8 +3767,10 @@ static int init_poc(H264Context *h){
         s->current_picture_ptr->field_poc[1]= field_poc[1];
         s->current_picture_ptr->poc = field_poc[1];
     }
-    if(!FIELD_PICTURE || !s->first_field)
-        s->current_picture_ptr->poc= FFMIN(field_poc[0], field_poc[1]);
+    if(!FIELD_PICTURE || !s->first_field) {
+        Picture *cur = s->current_picture_ptr;
+        cur->poc= FFMIN(cur->field_poc[0], cur->field_poc[1]);
+    }
 
     return 0;
 }




More information about the ffmpeg-cvslog mailing list