[FFmpeg-devel] [PATCH] avcodec/pngdec: apng: fix buffer index when no blending is needed.

Benoit Fouet benoit.fouet at free.fr
Fri Nov 28 16:45:17 CET 2014


Please discard, this is wrong...

----- Mail original -----
> ---
>  libavcodec/pngdec.c | 4 ++++
>  1 file changed, 4 insertions(+)
> 
> diff --git a/libavcodec/pngdec.c b/libavcodec/pngdec.c
> index a96667f..0ba2749 100644
> --- a/libavcodec/pngdec.c
> +++ b/libavcodec/pngdec.c
> @@ -933,7 +933,11 @@ static int handle_p_frame_apng(AVCodecContext
> *avctx, PNGDecContext *s,
>              pd      += s->image_linesize;
>              pd_last += s->image_linesize;
>          }
> +    } else {
> +        pd      += s->cur_h * s->image_linesize;
> +        pd_last += s->cur_h * s->image_linesize;
>      }
> +
>      for (j = s->y_offset + s->cur_h; j < s->height; j++) {
>          for (i = 0; i < ls; i++)
>              pd[i] = pd_last[i];
> --
> 2.2.0
> 
> _______________________________________________
> ffmpeg-devel mailing list
> ffmpeg-devel at ffmpeg.org
> http://ffmpeg.org/mailman/listinfo/ffmpeg-devel
> 


More information about the ffmpeg-devel mailing list