[Ffmpeg-cvslog] r7454 - trunk/libavformat/swf.c

Michael Niedermayer michaelni
Sun Jan 14 05:54:48 CET 2007


On Sun, Jan 14, 2007 at 01:54:03AM +0100, bcoudurier wrote:
> Author: bcoudurier
> Date: Sun Jan 14 01:54:03 2007
> New Revision: 7454
> 
> Modified:
>    trunk/libavformat/swf.c
> 
> Log:
> always export audiostreams

[...]

> +            switch((v>> 2) & 0x03) {
> +            case 1:
> +                ast->codec->sample_rate = 11025;
> +                break;
> +            case 2:
> +                ast->codec->sample_rate = 22050;
> +                break;
> +            case 3:
> +                ast->codec->sample_rate = 44100;
> +                break;
> +            default:
> +                return AVERROR_IO;
>              }

sample_rate_code= (v>>2) & 3;
if(sample_rate_code==0)
    return AVERROR_IO;
ast->codec->sample_rate = 11025 << (sample_rate_code-1);


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

The greatest way to live with honor in this world is to be what we pretend
to be. -- Socrates
-------------- 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-cvslog/attachments/20070114/155767fc/attachment.pgp>



More information about the ffmpeg-cvslog mailing list