Commit 9ccc4eed authored by Michael Niedermayer's avatar Michael Niedermayer

avformat/matroskaenc: Do not use native mode for raw RGB

This fixes generating totally unplayable files
Signed-off-by: 's avatarMichael Niedermayer <michaelni@gmx.at>
parent e2fb12b6
...@@ -879,6 +879,8 @@ static int mkv_write_track(AVFormatContext *s, MatroskaMuxContext *mkv, ...@@ -879,6 +879,8 @@ static int mkv_write_track(AVFormatContext *s, MatroskaMuxContext *mkv,
break; break;
} }
} }
if (codec->codec_id == AV_CODEC_ID_RAWVIDEO && !codec->codec_tag)
native_id = 0;
} }
if (codec->codec_type == AVMEDIA_TYPE_AUDIO && codec->initial_padding && codec->codec_id == AV_CODEC_ID_OPUS) { if (codec->codec_type == AVMEDIA_TYPE_AUDIO && codec->initial_padding && codec->codec_id == AV_CODEC_ID_OPUS) {
......
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