This is aligned with current code of matroskadec. Fixes field_order reported by ffprobe for MP4 H264, for example. --- libavformat/mov.c | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-)
diff --git a/libavformat/mov.c b/libavformat/mov.c index ad0b9a58d3..b5e012190b 100644 --- a/libavformat/mov.c +++ b/libavformat/mov.c @@ -2461,12 +2461,13 @@ static int mov_finalize_stsd_codec(MOVContext *c, AVIOContext *pb, case AV_CODEC_ID_VP9: st->need_parsing = AVSTREAM_PARSE_FULL; break; - case AV_CODEC_ID_AV1: - st->need_parsing = AVSTREAM_PARSE_HEADERS; - break; default: break; } + if (!st->need_parsing && st->codecpar->codec_type == AVMEDIA_TYPE_VIDEO + && st->codecpar->codec_id != AV_CODEC_ID_HEVC) + st->need_parsing = AVSTREAM_PARSE_HEADERS; + return 0; } -- 2.27.0.windows.1 _______________________________________________ ffmpeg-devel mailing list ffmpeg-devel@ffmpeg.org https://ffmpeg.org/mailman/listinfo/ffmpeg-devel To unsubscribe, visit link above, or email ffmpeg-devel-requ...@ffmpeg.org with subject "unsubscribe".