diff mbox series

[FFmpeg-devel,v2] 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

Message ID 20200820074331.1716-1-vikasa@nvidia.com
State New
Headers show
Series [FFmpeg-devel,v2] 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
Related show

Checks

Context Check Description
andriy/default pending
andriy/make success Make finished
andriy/make_fate success Make fate finished

Commit Message

Vikas Agrawal (Engrg-SW) Aug. 20, 2020, 7:43 a.m. UTC
---
 libavformat/mov.c | 3 +++
 1 file changed, 3 insertions(+)

Comments

Jean-Baptiste Kempf Aug. 20, 2020, 3:42 p.m. UTC | #1
Please fix your commit log and commit title.

On Thu, 20 Aug 2020, at 09:43, Vikas Agrawal (Engrg-SW) wrote:
> ---
>  libavformat/mov.c | 3 +++
>  1 file changed, 3 insertions(+)
> 
> diff --git a/libavformat/mov.c b/libavformat/mov.c
> index 1532e74d67..4c8598c992 100644
> --- a/libavformat/mov.c
> +++ b/libavformat/mov.c
> @@ -2423,6 +2423,9 @@ 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;
>      }
> -- 
> 2.24.0.windows.2
> 
> _______________________________________________
> ffmpeg-devel mailing list
> ffmpeg-devel@ffmpeg.org
> https://ffmpeg.org/mailman/listinfo/ffmpeg-devel
> 
> To unsubscribe, visit link above, or email
> ffmpeg-devel-request@ffmpeg.org with subject "unsubscribe".
diff mbox series

Patch

diff --git a/libavformat/mov.c b/libavformat/mov.c
index 1532e74d67..4c8598c992 100644
--- a/libavformat/mov.c
+++ b/libavformat/mov.c
@@ -2423,6 +2423,9 @@  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;
     }