[Ffmpeg-devel] [PATCH] waveformatetensible support

Michael Niedermayer michaelni
Sun Jan 14 05:43:27 CET 2007


Hi

On Sun, Jan 14, 2007 at 01:39:27AM +0100, Baptiste Coudurier wrote:
> Hi
> 
> Here is a patch to support waveformatextensible header.
> Only four first byte of GUID are needed, and they seem to match twocc.



> 
> -- 
> Baptiste COUDURIER                              GnuPG Key Id: 0x5C1ABAAA
> SMARTJOG S.A.                                    http://www.smartjog.com
> Key fingerprint                 8D77134D20CC9220201FC5DB0AC9325C5C1ABAAA
> Phone: +33 1 49966312

[...]
> -        codec->extradata_size = get_le16(pb);
> -        if (codec->extradata_size > 0) {
> -            if (codec->extradata_size > size - 18)
> -                codec->extradata_size = size - 18;
> -            codec->extradata = av_mallocz(codec->extradata_size + FF_INPUT_BUFFER_PADDING_SIZE);
> -            get_buffer(pb, codec->extradata, codec->extradata_size);
> -        } else
> -            codec->extradata_size = 0;
> -
[...]
> +            codec->extradata_size = cbSize;
> +            if (codec->extradata_size > 0) {
> +                if (codec->extradata_size > size - 18)
> +                    codec->extradata_size = size - 18;
> +                codec->extradata = av_mallocz(codec->extradata_size + FF_INPUT_BUFFER_PADDING_SIZE);
> +                get_buffer(pb, codec->extradata, codec->extradata_size);
> +                av_hex_dump(stdout, codec->extradata, codec->extradata_size);
> +            } else
> +                codec->extradata_size = 0;

cosmetics must be in seperate patches

[...]
-- 
Michael     GnuPG fingerprint: 9FF2128B147EF6730BADF133611EC787040B0FAB

When you are offended at any man's fault, turn to yourself and study your
own failings. Then you will forget your anger. -- Epictetus
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 189 bytes
Desc: not available
URL: <http://lists.mplayerhq.hu/pipermail/ffmpeg-devel/attachments/20070114/4397cfa5/attachment.pgp>



More information about the ffmpeg-devel mailing list