Browse Source

aiffenc: fix remuxing of qdm2

tags/n1.0
Piotr Bandurski Carl Eugen Hoyos 13 years ago
parent
commit
1b72a7e8a9
1 changed files with 6 additions and 0 deletions
  1. +6
    -0
      libavformat/aiffenc.c

+ 6
- 0
libavformat/aiffenc.c View File

@@ -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 */


Loading…
Cancel
Save