On Mon, Jan 07, 2013 at 01:23:29PM +0100, Anton Khirnov wrote:
> --- a/libavcodec/pngdec.c
> +++ b/libavcodec/pngdec.c
> @@ -227,32 +228,34 @@ static void png_filter_row(PNGDSPContext *dsp, uint8_t
> *dst, int filter_type,
> -static av_always_inline void convert_to_rgb32_loco(uint8_t *dst, const
> uint8_t *src, int width, int loco)
> +static av_always_inline void convert_to_rgb32_loco(uint8_t *dst,
> + const uint8_t *src,
> + int width, int loco)
> {
> int j;
> unsigned int r, g, b, a;
>
> - for(j = 0;j < width; j++) {
> + for (j = 0;j < width; j++) {
space after ;
> r = src[0];
> g = src[1];
> b = src[2];
> a = src[3];
> - if(loco) {
> + if (loco) {
> r = (r+g)&0xff;
> b = (b+g)&0xff;
spaces around operators
LGTM otherwise
Diego
_______________________________________________
libav-devel mailing list
[email protected]
https://lists.libav.org/mailman/listinfo/libav-devel