Revert "avformat/matroskaenc: write CodecPrivate in WebM"

This reverts commit 4755b6e6d1.

This change was not necessary. CodecPrivate was being written to WebM
for codecs like AV1 already.
This commit is contained in:
James Almer 2018-09-21 18:22:05 -03:00
parent 4755b6e6d1
commit a068594248

View File

@ -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)