changeset 3074:815859771e8b libavformat

support QDM2 in aiff, QDM2.aif
author bcoudurier
date Mon, 25 Feb 2008 12:29:34 +0000
parents ed7b32bedcb5
children b273d958cf52
files aiff.c
diffstat 1 files changed, 8 insertions(+), 0 deletions(-) [+]
line wrap: on
line diff
--- a/aiff.c	Mon Feb 25 12:24:30 2008 +0000
+++ b/aiff.c	Mon Feb 25 12:29:34 2008 +0000
@@ -36,6 +36,7 @@
     { 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 @@
             }
             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++;