Commit a0685942 authored by James Almer's avatar James Almer

Revert "avformat/matroskaenc: write CodecPrivate in WebM"

This reverts commit 4755b6e6.

This change was not necessary. CodecPrivate was being written to WebM
for codecs like AV1 already.
parent 4755b6e6
......@@ -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)
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment