changeset 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 b838537e0ab3
children d5790580ed3e
files h264.c
diffstat 1 files changed, 2 insertions(+), 0 deletions(-) [+]
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