1
0
mirror of https://github.com/FFmpeg/FFmpeg.git synced 2024-12-23 12:43:46 +02:00

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

This fixes generating totally unplayable files

Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
This commit is contained in:
Michael Niedermayer 2015-02-14 12:47:35 +01:00
parent e2fb12b629
commit 9ccc4eedd1

View File

@ -879,6 +879,8 @@ static int mkv_write_track(AVFormatContext *s, MatroskaMuxContext *mkv,
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) {