[FFmpeg-cvslog] r12204 - trunk/libavformat/aiff.c
bcoudurier
subversion
Mon Feb 25 13:29:34 CET 2008
Author: bcoudurier
Date: Mon Feb 25 13:29:34 2008
New Revision: 12204
Log:
support QDM2 in aiff, QDM2.aif
Modified:
trunk/libavformat/aiff.c
Modified: trunk/libavformat/aiff.c
==============================================================================
--- trunk/libavformat/aiff.c (original)
+++ trunk/libavformat/aiff.c Mon Feb 25 13:29:34 2008
@@ -36,6 +36,7 @@ static const AVCodecTag codec_aiff_tags[
{ CODEC_ID_ADPCM_G726, MKTAG('G','7','2','6') },
{ CODEC_ID_PCM_S16LE, MKTAG('s','o','w','t') },
{ CODEC_ID_ADPCM_IMA_QT, MKTAG('i','m','a','4') },
+ { CODEC_ID_QDM2, MKTAG('Q','D','M','2') },
{ 0, 0 },
};
@@ -366,6 +367,13 @@ static int aiff_read_header(AVFormatCont
}
url_fskip(pb, size - 8);
break;
+ case MKTAG('w', 'a', 'v', 'e'):
+ st->codec->extradata = av_mallocz(size + FF_INPUT_BUFFER_PADDING_SIZE);
+ if (!st->codec->extradata)
+ return AVERROR(ENOMEM);
+ st->codec->extradata_size = size;
+ get_buffer(pb, st->codec->extradata, size);
+ break;
default: /* Jump */
if (size & 1) /* Always even aligned */
size++;
More information about the ffmpeg-cvslog
mailing list