Signed-off-by: Paul B Mahol <one...@gmail.com> --- libavformat/mxfdec.c | 12 ++++++++++++ 1 file changed, 12 insertions(+)
diff --git a/libavformat/mxfdec.c b/libavformat/mxfdec.c index f49890e140..abb030b1a4 100644 --- a/libavformat/mxfdec.c +++ b/libavformat/mxfdec.c @@ -2432,6 +2432,18 @@ static int mxf_parse_structural_metadata(MXFContext *mxf) default: av_log(mxf->fc, AV_LOG_INFO, "Unknown frame layout type: %d\n", descriptor->frame_layout); } + + if (st->codecpar->codec_id == AV_CODEC_ID_PRORES) { + switch (descriptor->essence_codec_ul[14]) { + case 1: st->codecpar->profile = FF_PROFILE_PRORES_PROXY; break; + case 2: st->codecpar->profile = FF_PROFILE_PRORES_LT; break; + case 3: st->codecpar->profile = FF_PROFILE_PRORES_STANDARD; break; + case 4: st->codecpar->profile = FF_PROFILE_PRORES_HQ; break; + case 5: st->codecpar->profile = FF_PROFILE_PRORES_4444; break; + case 6: st->codecpar->profile = FF_PROFILE_PRORES_XQ; break; + } + } + if (st->codecpar->codec_id == AV_CODEC_ID_RAWVIDEO) { st->codecpar->format = descriptor->pix_fmt; if (st->codecpar->format == AV_PIX_FMT_NONE) { -- 2.17.1 _______________________________________________ ffmpeg-devel mailing list ffmpeg-devel@ffmpeg.org http://ffmpeg.org/mailman/listinfo/ffmpeg-devel