[FFmpeg-cvslog] avformat/matroskaenc: write CodecPrivate in WebM

James Almer git at videolan.org
Fri Sep 21 22:58:02 EEST 2018


ffmpeg | branch: master | James Almer <jamrial at gmail.com> | Fri Sep 21 16:55:35 2018 -0300| [4755b6e6d194b0a0fb72957cd3dc0eaf7b2375f7] | committer: James Almer

avformat/matroskaenc: write CodecPrivate in WebM

This is now needed for AV1.

Signed-off-by: James Almer <jamrial at gmail.com>

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

 libavformat/matroskaenc.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/libavformat/matroskaenc.c b/libavformat/matroskaenc.c
index 76cb124221..a0e2f426f7 100644
--- a/libavformat/matroskaenc.c
+++ b/libavformat/matroskaenc.c
@@ -1429,7 +1429,7 @@ static int mkv_write_track(AVFormatContext *s, MatroskaMuxContext *mkv,
         return AVERROR(EINVAL);
     }
 
-    if (mkv->mode != MODE_WEBM || par->codec_id != AV_CODEC_ID_WEBVTT) {
+    if (par->codec_id != AV_CODEC_ID_WEBVTT) {
         mkv->tracks[i].codecpriv_offset = avio_tell(pb);
         ret = mkv_write_codecprivate(s, pb, par, native_id, qt_id);
         if (ret < 0)



More information about the ffmpeg-cvslog mailing list