diff options
author | James Almer <jamrial@gmail.com> | 2018-09-21 18:22:05 -0300 |
---|---|---|
committer | James Almer <jamrial@gmail.com> | 2018-09-21 18:22:37 -0300 |
commit | a068594248b784c97d4423812379ca03c6ce5c54 (patch) | |
tree | 801292a2851c854e4519e202b74e313bc018c68b | |
parent | 4755b6e6d194b0a0fb72957cd3dc0eaf7b2375f7 (diff) | |
download | ffmpeg-a068594248b784c97d4423812379ca03c6ce5c54.tar.gz |
Revert "avformat/matroskaenc: write CodecPrivate in WebM"
This reverts commit 4755b6e6d194b0a0fb72957cd3dc0eaf7b2375f7.
This change was not necessary. CodecPrivate was being written to WebM
for codecs like AV1 already.
-rw-r--r-- | libavformat/matroskaenc.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/libavformat/matroskaenc.c b/libavformat/matroskaenc.c index a0e2f426f7..76cb124221 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 (par->codec_id != AV_CODEC_ID_WEBVTT) { + if (mkv->mode != MODE_WEBM || 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) |