diff h264.c @ 5904:4d8ecacecccb libavcodec

Provide top_field_first logic for h264 patch by: Reinhard Nissl rnissl a gmx d de
author andoma
date Sat, 10 Nov 2007 06:10:46 +0000
parents c64d94561b19
children 77403dc808cd
line wrap: on
line diff
--- a/h264.c	Sat Nov 10 01:02:36 2007 +0000
+++ b/h264.c	Sat Nov 10 06:10:46 2007 +0000
@@ -7767,6 +7767,8 @@
 
         } 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