diff options
author | Piotr Bandurski <ami_stuff@o2.pl> | 2012-08-06 00:08:53 +0200 |
---|---|---|
committer | Carl Eugen Hoyos <cehoyos@ag.or.at> | 2012-08-06 00:08:53 +0200 |
commit | 1b72a7e8a9c0e8598e83706b4698d0d4319d8345 (patch) | |
tree | 56e90c88f312183d8b4a434fe995d5d495b104cf /libavformat/aiffenc.c | |
parent | 16dc5f20505d39042d06bc4b09a01e8a4558fa2b (diff) | |
download | ffmpeg-1b72a7e8a9c0e8598e83706b4698d0d4319d8345.tar.gz |
aiffenc: fix remuxing of qdm2
Diffstat (limited to 'libavformat/aiffenc.c')
-rw-r--r-- | libavformat/aiffenc.c | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/libavformat/aiffenc.c b/libavformat/aiffenc.c index 9165e12517..3cc0fcccf1 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 */ |