[FFmpeg-devel] [PATCH 1/2] avformat/mov: always parse video headers
Paul B Mahol
onemda at gmail.com
Sat Jan 30 00:45:49 EET 2021
Why is AV1 touched?
On Fri, Jan 29, 2021 at 6:24 PM Nicolas Gaullier <nicolas.gaullier at cji.paris>
wrote:
> 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 at ffmpeg.org
> https://ffmpeg.org/mailman/listinfo/ffmpeg-devel
>
> To unsubscribe, visit link above, or email
> ffmpeg-devel-request at ffmpeg.org with subject "unsubscribe".
More information about the ffmpeg-devel
mailing list