summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMichael Niedermayer <michaelni@gmx.at>2009-06-03 19:24:51 +0000
committerMichael Niedermayer <michaelni@gmx.at>2009-06-03 19:24:51 +0000
commitf4ebb334be7b9442099fdcee7fd3aaa7899404a6 (patch)
treea5b639739c95bd3814f9bc361de38669c538783d
parent4d95ae18824399caf6224a1328268fa799a6db18 (diff)
Fix sei_ct_type check so it does not mistreat ct_type= unknown.
Originally committed as revision 19082 to svn://svn.ffmpeg.org/ffmpeg/trunk
-rw-r--r--libavcodec/h264.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/libavcodec/h264.c b/libavcodec/h264.c
index a4d7920840..f2e785b9fc 100644
--- a/libavcodec/h264.c
+++ b/libavcodec/h264.c
@@ -7793,7 +7793,7 @@ static int decode_frame(AVCodecContext *avctx,
/* 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;