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

andoma subversion
Sat Nov 10 07:10:46 CET 2007


Author: andoma
Date: Sat Nov 10 07:10:46 2007
New Revision: 10989

Log:
Provide top_field_first logic for h264

patch by: Reinhard Nissl rnissl a gmx d de



Modified:
   trunk/libavcodec/h264.c

Modified: trunk/libavcodec/h264.c
==============================================================================
--- trunk/libavcodec/h264.c	(original)
+++ trunk/libavcodec/h264.c	Sat Nov 10 07:10:46 2007
@@ -7767,6 +7767,8 @@ static int decode_frame(AVCodecContext *
 
         } else {
             cur->interlaced_frame = FIELD_OR_MBAFF_PICTURE;
+            /* Derive top_field_first from field pocs. */
+            cur->top_field_first = cur->field_poc[0] < cur->field_poc[1];
 
         //FIXME do something with unavailable reference frames
 




More information about the ffmpeg-cvslog mailing list