diff options
author | Michael Niedermayer <michaelni@gmx.at> | 2015-02-14 12:47:35 +0100 |
---|---|---|
committer | Michael Niedermayer <michaelni@gmx.at> | 2015-02-14 13:02:30 +0100 |
commit | 9ccc4eedd1815272ba5d9744000e9e760e8b7c25 (patch) | |
tree | b4eeaeabbd00a5b94adafb3e37436a28e47bf6f8 /libavformat/matroskaenc.c | |
parent | e2fb12b629e8c5a2a21c7bbd3260e3d316adeef1 (diff) | |
download | ffmpeg-9ccc4eedd1815272ba5d9744000e9e760e8b7c25.tar.gz |
avformat/matroskaenc: Do not use native mode for raw RGB
This fixes generating totally unplayable files
Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
Diffstat (limited to 'libavformat/matroskaenc.c')
-rw-r--r-- | libavformat/matroskaenc.c | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/libavformat/matroskaenc.c b/libavformat/matroskaenc.c index 810a60806e..eb6e859c26 100644 --- a/libavformat/matroskaenc.c +++ b/libavformat/matroskaenc.c @@ -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) { |