ffmpeg | branch: master | Michael Niedermayer <[email protected]> | 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 <[email protected]>

> 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) {

_______________________________________________
ffmpeg-cvslog mailing list
[email protected]
http://ffmpeg.org/mailman/listinfo/ffmpeg-cvslog

Reply via email to