diff options
author | Carl Eugen Hoyos <cehoyos@ag.or.at> | 2017-01-14 06:06:05 +0100 |
---|---|---|
committer | Carl Eugen Hoyos <cehoyos@ag.or.at> | 2017-01-14 06:06:05 +0100 |
commit | c723108e25551cfdb0b1e7e52df6d084ea0348b9 (patch) | |
tree | 6e574af029fb1109c12090923f17cd8ff12ae911 /libavformat | |
parent | 1412e5a004eaa62f7ce4e222b0cb9e921ee233e2 (diff) | |
download | ffmpeg-c723108e25551cfdb0b1e7e52df6d084ea0348b9.tar.gz |
lavf/matroskaenc: Do not write two CodecID elements for rawvideo.
Fixes ticket #6068.
Diffstat (limited to 'libavformat')
-rw-r--r-- | libavformat/matroskaenc.c | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/libavformat/matroskaenc.c b/libavformat/matroskaenc.c index 78a621ec22..4760fb0df8 100644 --- a/libavformat/matroskaenc.c +++ b/libavformat/matroskaenc.c @@ -1119,6 +1119,7 @@ static int mkv_write_track(AVFormatContext *s, MatroskaMuxContext *mkv, } else { // look for a codec ID string specific to mkv to use, // if none are found, use AVI codes + if (par->codec_id != AV_CODEC_ID_RAWVIDEO || par->codec_tag) { for (j = 0; ff_mkv_codec_tags[j].id != AV_CODEC_ID_NONE; j++) { if (ff_mkv_codec_tags[j].id == par->codec_id) { put_ebml_string(pb, MATROSKA_ID_CODECID, ff_mkv_codec_tags[j].str); @@ -1126,7 +1127,7 @@ static int mkv_write_track(AVFormatContext *s, MatroskaMuxContext *mkv, break; } } - if (par->codec_id == AV_CODEC_ID_RAWVIDEO && !par->codec_tag) { + } else { if (mkv->allow_raw_vfw) { native_id = 0; } else { |