[FFmpeg-devel] [PATCH] wmapro support for frame len bits estimation

Michael Niedermayer michaelni
Fri Jun 12 16:49:16 CEST 2009


On Fri, Jun 12, 2009 at 02:39:10PM +0200, Sascha Sommer wrote:
> Hi,
> 
> attached patch adds support for wmapro in the frame len bits estimation code.
> It depends on [PATCH] factor out wma_get_frame_len_bits
> 
> Regards
> 
> Sascha

>  wma.c |   16 +++++++++++++++-
>  1 file changed, 15 insertions(+), 1 deletion(-)
> fd74bd530db21f07efb70f61640c9637cbe7d635  wma_frame_len_bits_wmapro.patch
> --- wma.c.org	2009-06-12 14:15:40.000000000 +0200
> +++ wma.c	2009-06-12 14:14:49.000000000 +0200
> @@ -80,8 +80,22 @@
>      else if (sample_rate <= 22050 ||
>               (sample_rate <= 32000 && version == 1))
>          frame_len_bits = 10;
> -    else
> +    else if (sample_rate <= 48000)
>          frame_len_bits = 11;
> +    else if (sample_rate <= 96000)
> +        frame_len_bits = 12;

{} between if/else would be nice


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

Why not whip the teacher when the pupil misbehaves? -- Diogenes of Sinope
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 189 bytes
Desc: Digital signature
URL: <http://lists.mplayerhq.hu/pipermail/ffmpeg-devel/attachments/20090612/2e5901bd/attachment.pgp>



More information about the ffmpeg-devel mailing list