[FFmpeg-cvslog] r9286 - trunk/libavcodec/flac.c
Benoit Fouet
benoit.fouet
Tue Jun 12 10:03:41 CEST 2007
Hi,
gpoirier wrote:
> Modified: trunk/libavcodec/flac.c
> ==============================================================================
> --- trunk/libavcodec/flac.c (original)
> +++ trunk/libavcodec/flac.c Tue Jun 12 09:59:43 2007
> @@ -684,8 +673,8 @@ static int flac_decode_frame(AVCodecCont
> {\
> int a= s->decoded[0][i];\
> int b= s->decoded[1][i];\
> - *(samples++) = (left ) >> (16 - s->bps);\
> - *(samples++) = (right) >> (16 - s->bps);\
> + *(samples++) = (left << (24 - s->bps)) >> 8;\
> + *(samples++) = (right << (24 - s->bps)) >> 8;\
>
as i already said, this code lacks parentheses
Ben
--
Purple Labs S.A.
www.purplelabs.com
More information about the ffmpeg-cvslog
mailing list