[FFmpeg-devel] [PATCH] Xxan decoder

Diego Biurrun diego
Sat Dec 19 14:45:44 CET 2009


On Sat, Dec 19, 2009 at 01:38:02PM +0200, Kostya wrote:
> Now as clean patch (without docs or field clarification).

Neat, I need to test this soonish.  Does it decode all samples?

> I also recommend leaving it for some student to finish.

Will that ever happen? :)

> --- libavcodec/xan.c	(revision 20770)
> +++ libavcodec/xan.c	(working copy)
> @@ -347,7 +393,194 @@
> @@ -359,19 +592,22 @@
>  
> -    palette_control->palette_changed = 0;
> -    memcpy(s->current_frame.data[1], palette_control->palette,
> -        AVPALETTE_SIZE);
> -    s->current_frame.palette_has_changed = 1;
> +    if (avctx->codec->id == CODEC_ID_XAN_WC3) {
> +        palette_control->palette_changed = 0;
> +        memcpy(s->current_frame.data[1], palette_control->palette,
> +            AVPALETTE_SIZE);

indentation

> @@ -424,7 +661,6 @@
>      .long_name = NULL_IF_CONFIG_SMALL("Wing Commander III / Xan"),
>  };
>  
> -/*
>  AVCodec xan_wc4_decoder = {
>      "xan_wc4",
>      CODEC_TYPE_VIDEO,
> @@ -436,4 +672,3 @@
>      xan_decode_frame,
>      CODEC_CAP_DR1,
>  };
> -*/

long_name is missing.

Diego



More information about the ffmpeg-devel mailing list