[Ffmpeg-devel] [PATCH] Fix some compiler warnings

Rich Felker dalias
Tue Jun 27 05:03:38 CEST 2006


On Sat, Jun 24, 2006 at 09:09:12AM +0200, Pieter Hollants wrote:
> -                v += 1<<(7 - FRAC_BITS);
> +                v += 1<<(7 - FRAC_BITS) % (CHAR_BIT * sizeof(v));

Use of CHAR_BIT anywhere is utter nonsense. If you mean 8 write 8..
Anyway Michael said this is wrong IIRC.

Rich





More information about the ffmpeg-devel mailing list