[FFmpeg-cvslog] aiffenc: fix remuxing of qdm2

Piotr Bandurski git at videolan.org
Mon Aug 6 00:09:23 CEST 2012


ffmpeg | branch: master | Piotr Bandurski <ami_stuff at o2.pl> | Mon Aug  6 00:08:53 2012 +0200| [1b72a7e8a9c0e8598e83706b4698d0d4319d8345] | committer: Carl Eugen Hoyos

aiffenc: fix remuxing of qdm2

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

 libavformat/aiffenc.c |    6 ++++++
 1 file changed, 6 insertions(+)

diff --git a/libavformat/aiffenc.c b/libavformat/aiffenc.c
index 9165e12..3cc0fcc 100644
--- a/libavformat/aiffenc.c
+++ b/libavformat/aiffenc.c
@@ -98,6 +98,12 @@ static int aiff_write_header(AVFormatContext *s)
         avio_wb16(pb, 0);
     }
 
+    if (enc->codec_tag == MKTAG('Q','D','M','2') && enc->extradata_size) {
+        ffio_wfourcc(pb, "wave");
+        avio_wb32(pb, enc->extradata_size);
+        avio_write(pb, enc->extradata, enc->extradata_size);
+    }
+
     /* Sound data chunk */
     ffio_wfourcc(pb, "SSND");
     aiff->ssnd = avio_tell(pb);         /* Sound chunk size */



More information about the ffmpeg-cvslog mailing list