[FFmpeg-devel] [PATCH] CD+G Demuxer & Decoder

Diego Biurrun diego
Tue Dec 1 14:14:13 CET 2009


On Tue, Dec 01, 2009 at 12:13:24AM -0800, Michael Tison wrote:
> 
> Attached is another revised patch.

.. more nits :) ..

> --- libavcodec/cdgraphics.c     (revision 0)
> +++ libavcodec/cdgraphics.c     (revision 0)
> @@ -0,0 +1,416 @@
> +    frame->buffer_hints = FF_BUFFER_HINTS_VALID |
> +                          FF_BUFFER_HINTS_PRESERVE |
> +                          FF_BUFFER_HINTS_REUSABLE;

Align the |.

> +    color = cp->data[0] & 0x0F;
> +    repeat = cp->data[1] & 0x0F;

Align the =.

> +       r = (color >> 8) & 0x000F;
> +       g = (color >> 4) & 0x000F;
> +       b = (color) & 0x000F;

Align the &.

> +    in = in + in_tl_x + in_tl_y * lsize;
> +    out = out + out_tl_x + out_tl_y * lsize;

align

Diego



More information about the ffmpeg-devel mailing list