[FFmpeg-cvslog] avformat/matroskaenc: Do not use native mode for raw RGB

Michael Niedermayer git at videolan.org
Sat Feb 14 13:03:30 CET 2015


ffmpeg | branch: master | Michael Niedermayer <michaelni at gmx.at> | Sat Feb 14 12:47:35 2015 +0100| [9ccc4eedd1815272ba5d9744000e9e760e8b7c25] | committer: Michael Niedermayer

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

This fixes generating totally unplayable files

Signed-off-by: Michael Niedermayer <michaelni at gmx.at>

> http://git.videolan.org/gitweb.cgi/ffmpeg.git/?a=commit;h=9ccc4eedd1815272ba5d9744000e9e760e8b7c25
---

 libavformat/matroskaenc.c |    2 ++
 1 file changed, 2 insertions(+)

diff --git a/libavformat/matroskaenc.c b/libavformat/matroskaenc.c
index 810a608..eb6e859 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) {



More information about the ffmpeg-cvslog mailing list