[FFmpeg-cvslog] Refuse to mux tta into matroska, the output file is broken.

Carl Eugen Hoyos git at videolan.org
Thu Jan 24 10:23:46 CET 2013


ffmpeg | branch: master | Carl Eugen Hoyos <cehoyos at ag.or.at> | Thu Jan 24 10:23:00 2013 +0100| [fc50175ba21f3ee7b600176c62476c3cf1bb06ef] | committer: Carl Eugen Hoyos

Refuse to mux tta into matroska, the output file is broken.

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

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

diff --git a/libavformat/matroskaenc.c b/libavformat/matroskaenc.c
index 0e522fe..56adaa8 100644
--- a/libavformat/matroskaenc.c
+++ b/libavformat/matroskaenc.c
@@ -931,6 +931,13 @@ static int mkv_write_header(AVFormatContext *s)
     if (!mkv->tracks)
         return AVERROR(ENOMEM);
 
+    for (i = 0; i < s->nb_streams; i++)
+        if (s->streams[i]->codec->codec_id == AV_CODEC_ID_TTA) {
+            av_log(s, AV_LOG_ERROR, "The Matroska muxer does not yet support muxing %s\n",
+                   avcodec_get_name(s->streams[i]->codec->codec_id));
+            return AVERROR_PATCHWELCOME;
+        }
+
     ebml_header = start_ebml_master(pb, EBML_ID_HEADER, 0);
     put_ebml_uint   (pb, EBML_ID_EBMLVERSION        ,           1);
     put_ebml_uint   (pb, EBML_ID_EBMLREADVERSION    ,           1);



More information about the ffmpeg-cvslog mailing list