changeset 9790:3fbd5452cbd1 libavcodec

Fix sei_ct_type check so it does not mistreat ct_type= unknown.
author michael
date Wed, 03 Jun 2009 19:24:51 +0000
parents 391014285c25
children de4a8f76b1b9
files h264.c
diffstat 1 files changed, 1 insertions(+), 1 deletions(-) [+]
line wrap: on
line diff
--- a/h264.c	Wed Jun 03 19:23:34 2009 +0000
+++ b/h264.c	Wed Jun 03 19:24:51 2009 +0000
@@ -7793,7 +7793,7 @@
 
             /* Signal interlacing information externally. */
             /* Prioritize picture timing SEI information over used decoding process if it exists. */
-            if (h->sei_ct_type)
+            if (h->sei_ct_type & 3)
                 cur->interlaced_frame = (h->sei_ct_type & (1<<1)) != 0;
             else
                 cur->interlaced_frame = FIELD_OR_MBAFF_PICTURE;