[FFmpeg-devel] [PATCH] Bluray Subtitle Support, v7 (Updated patch to v11)

Diego Biurrun diego
Mon Aug 24 12:30:38 CEST 2009


On Mon, Aug 24, 2009 at 08:08:18PM +1000, Stephen Backway wrote:
> 
> --- libavcodec/pgssubdec.c	(revision 0)
> +++ libavcodec/pgssubdec.c	(revision 0)
> @@ -0,0 +1,467 @@
> +
> +        if (run > 0 && pixel_count + run <= sub->rects[0]->w * sub->rects[0]->h) {
> +            memset(sub->rects[0]->pict.data[0] + pixel_count, color, run);
> +            pixel_count += run;
> +        } else if (run == 0) {

nit: (!run)

> +            /*
> +             * New Line. Check if correct pixels decoded,
> +             * if not display warning and adjust bitmap
> +             * pointer to correct new line position.
> +             */

nit: That could easily fit on two lines.

Diego



More information about the ffmpeg-devel mailing list