Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/FFmpeg/FFmpeg.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMichael Niedermayer <michaelni@gmx.at>2015-02-14 14:47:35 +0300
committerMichael Niedermayer <michaelni@gmx.at>2015-02-14 15:02:30 +0300
commit9ccc4eedd1815272ba5d9744000e9e760e8b7c25 (patch)
treeb4eeaeabbd00a5b94adafb3e37436a28e47bf6f8 /libavformat
parente2fb12b629e8c5a2a21c7bbd3260e3d316adeef1 (diff)
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')
-rw-r--r--libavformat/matroskaenc.c2
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) {