[FFmpeg-devel] Add waveformat extensible support in wav muxer (SoC qualification task)

Ronald S. Bultje rsbultje
Thu Apr 2 19:29:06 CEST 2009


Hi Zhentan,

On Thu, Apr 2, 2009 at 1:25 PM, zhentan feng <spyfeng at gmail.com> wrote:
> new patch attached below.

-    put_le16(pb, enc->codec_tag);
+    waveformatextensible = enc->channels > 2 && enc->channel_layout;
+    if (waveformatextensible) {
+        put_le16(pb, 0xfffe);
+        pre_size = 22; /* 22 is the size of
WAVEFORMATEXTENSIBLE-WAVEFORMATEX */
+    } else
+        put_le16(pb, enc->codec_tag);

See my comment on patch#9 for this one...

Ronald



More information about the ffmpeg-devel mailing list