aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorMasaki Tanaka <maki.rxrz@gmail.com>2013-04-09 16:44:40 +0900
committerAnton Khirnov <anton@khirnov.net>2013-05-03 08:20:19 +0200
commitaccde1bd8756936e1757b42fc9bad2eb5d192f8a (patch)
treeade9b4331aa3fd66dc91faaeaba0a5c437622478
parentf43c14d0467f8095b31babcd337e3547852a82a0 (diff)
downloadffmpeg-accde1bd8756936e1757b42fc9bad2eb5d192f8a.tar.gz
vc1_parser: Set field_order.
Signed-off-by: Anton Khirnov <anton@khirnov.net>
-rw-r--r--libavcodec/vc1_parser.c5
1 files changed, 5 insertions, 0 deletions
diff --git a/libavcodec/vc1_parser.c b/libavcodec/vc1_parser.c
index 5aa1248e77..a6363d9a90 100644
--- a/libavcodec/vc1_parser.c
+++ b/libavcodec/vc1_parser.c
@@ -88,6 +88,11 @@ static void vc1_extract_headers(AVCodecParserContext *s, AVCodecContext *avctx,
}
}
+ if (vpc->v.broadcast && vpc->v.interlace && !vpc->v.psf)
+ s->field_order = vpc->v.tff ? AV_FIELD_TT : AV_FIELD_BB;
+ else
+ s->field_order = AV_FIELD_PROGRESSIVE;
+
break;
}
}