[Ffmpeg-cvslog] r5507 - trunk/libavcodec/flac.c

Michael Niedermayer michaelni
Wed Jun 21 10:25:18 CEST 2006


Hi

On Wed, Jun 21, 2006 at 02:21:26AM +0200, lu_zero wrote:
[...]

>  
> +static inline int16_t shift_to_16_bits(int32_t data, int bps)
> +{
> +    if (bps == 24) {
> +        return (data >> 8);
> +    } else if (bps == 20) {
> +        return (data >> 4);
> +    } else {
> +        return data;
> +    }
> +}
> +

why not data >> (bps-16) ?

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

In the past you could go to a library and read, borrow or copy any book
Today you'd get arrested for mere telling someone where the library is




More information about the ffmpeg-cvslog mailing list