[FFmpeg-cvslog] avformat/mov_demuxer: Extended MOV demuxer to handle EVC video content

Dawid Kozinski git at videolan.org
Thu Jun 15 18:00:23 EEST 2023


ffmpeg | branch: master | Dawid Kozinski <d.kozinski at samsung.com> | Thu Jun 15 13:48:59 2023 +0200| [091705cd55afe08f0c85d673dc924856fef9ae6e] | committer: James Almer

avformat/mov_demuxer: Extended MOV demuxer to handle EVC video content

- Added evc extension to the list of extensions for ff_mov_demuxer

Signed-off-by: Dawid Kozinski <d.kozinski at samsung.com>

> http://git.videolan.org/gitweb.cgi/ffmpeg.git/?a=commit;h=091705cd55afe08f0c85d673dc924856fef9ae6e
---

 libavformat/demux.c | 1 +
 libavformat/mov.c   | 2 ++
 2 files changed, 3 insertions(+)

diff --git a/libavformat/demux.c b/libavformat/demux.c
index b3f563ccc7..1b21b8440c 100644
--- a/libavformat/demux.c
+++ b/libavformat/demux.c
@@ -120,6 +120,7 @@ static int set_codec_from_probe_data(AVFormatContext *s, AVStream *st,
         { "mp3",        AV_CODEC_ID_MP3,          AVMEDIA_TYPE_AUDIO    },
         { "mpegvideo",  AV_CODEC_ID_MPEG2VIDEO,   AVMEDIA_TYPE_VIDEO    },
         { "truehd",     AV_CODEC_ID_TRUEHD,       AVMEDIA_TYPE_AUDIO    },
+        { "evc",        AV_CODEC_ID_EVC,          AVMEDIA_TYPE_VIDEO    },
         { 0 }
     };
     int score;
diff --git a/libavformat/mov.c b/libavformat/mov.c
index a8d004e02b..278dec6765 100644
--- a/libavformat/mov.c
+++ b/libavformat/mov.c
@@ -2646,6 +2646,7 @@ static int mov_finalize_stsd_codec(MOVContext *c, AVIOContext *pb,
     case AV_CODEC_ID_VP9:
         sti->need_parsing = AVSTREAM_PARSE_FULL;
         break;
+    case AV_CODEC_ID_EVC:
     case AV_CODEC_ID_AV1:
         /* field_order detection of H264 requires parsing */
     case AV_CODEC_ID_H264:
@@ -7932,6 +7933,7 @@ static const MOVParseTableEntry mov_default_parse_table[] = {
 { MKTAG('i','l','o','c'), mov_read_iloc },
 { MKTAG('p','c','m','C'), mov_read_pcmc }, /* PCM configuration box */
 { MKTAG('p','i','t','m'), mov_read_pitm },
+{ MKTAG('e','v','c','C'), mov_read_glbl },
 { 0, NULL }
 };
 



More information about the ffmpeg-cvslog mailing list