diff options
author | Carl Eugen Hoyos <cehoyos@ag.or.at> | 2015-07-22 10:23:18 +0200 |
---|---|---|
committer | Carl Eugen Hoyos <cehoyos@ag.or.at> | 2015-07-22 10:23:18 +0200 |
commit | 35b33f1a195c392bca374b3a49b7a18811effe56 (patch) | |
tree | 8d6fca083fe3c0dc9ea97590ebb5918d118026e6 /libavformat/mxfdec.c | |
parent | d373b508b540aa18d13ad97bc330530fa8219421 (diff) |
lavf/mxfdec: Set codec_tag AVup for Avid 1:1 input.
Diffstat (limited to 'libavformat/mxfdec.c')
-rw-r--r-- | libavformat/mxfdec.c | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/libavformat/mxfdec.c b/libavformat/mxfdec.c index 27dd5bcd41..2159bd7037 100644 --- a/libavformat/mxfdec.c +++ b/libavformat/mxfdec.c @@ -2045,6 +2045,9 @@ static int mxf_parse_structural_metadata(MXFContext *mxf) &descriptor->essence_codec_ul); st->codec->pix_fmt = (enum AVPixelFormat)pix_fmt_ul->id; if (st->codec->pix_fmt == AV_PIX_FMT_NONE) { + st->codec->codec_tag = mxf_get_codec_ul(ff_mxf_codec_tag_uls, + &descriptor->essence_codec_ul)->id; + if (!st->codec->codec_tag) { /* support files created before RP224v10 by defaulting to UYVY422 if subsampling is 4:2:2 and component depth is 8-bit */ if (descriptor->horiz_subsampling == 2 && @@ -2052,6 +2055,7 @@ static int mxf_parse_structural_metadata(MXFContext *mxf) descriptor->component_depth == 8) { st->codec->pix_fmt = AV_PIX_FMT_UYVY422; } + } } } } |