]> git.sesse.net Git - ffmpeg/commit
Set AVSTREAM_PARSE_HEADERS flag for AV1 MP4 streams
authorVikas Agrawal <vikasa@nvidia.com>
Fri, 21 Aug 2020 06:37:18 +0000 (12:07 +0530)
committerJames Almer <jamrial@gmail.com>
Mon, 24 Aug 2020 14:40:03 +0000 (11:40 -0300)
commit026fea827d7957c4f9de5a81beab6e7eacfabfe0
treebe80833352c9c39b6801576c04fb780edddbc9ee
parent7969551a22440adf51a5b6ad9aa0f524c6eff3b3
Set AVSTREAM_PARSE_HEADERS flag for AV1 MP4 streams

It help initialize chroma format and other info properly
Chroma format wasn't correct if I use below code:
        avformat_find_stream_info(fmtc, NULL);
        iVideoStream = av_find_best_stream(fmtc, AVMEDIA_TYPE_VIDEO, -1, -1, NULL, 0);
        eChromaFormat = (AVPixelFormat)fmtc->streams[iVideoStream]->codecpar->format;

Signed-off-by: James Almer <jamrial@gmail.com>
libavformat/mov.c