[FFmpeg-devel] APNG encoder can work incorrectly

Paul B Mahol onemda at gmail.com
Sun Mar 27 18:47:50 CEST 2016


On 3/27/16, Dmitriy <DiZNet at mail.ru> wrote:
> In come cases APNG encoder generate only static video.
>
> The errors are located in the apng_encode_frame function (pngenc.c file).
>
> The
> av_frame_copy(diffFrame, s->last_frame);
> and
> av_frame_copy(diffFrame, s->last_frame);
>
> functions doesn't work if the image size was changed in
> apng_do_inverse_blend function and return error code.
>
> you need insert the following codes
>
> diffFrame->width = pict->width;
> diffFrame->height = pict->height;
> av_frame_copy(diffFrame, s->last_frame);
>
> and
>
> diffFrame->width = pict->width;
> diffFrame->height = pict->height;
> av_frame_copy(diffFrame, s->last_frame);
>
> to restore image size before recovery diffFrame image.

Could you provide input file so I can reproduce this?

>
> --
> S uvazheniem,
>  Dmitriy                          mailto:DiZNet at mail.ru
>
> _______________________________________________
> ffmpeg-devel mailing list
> ffmpeg-devel at ffmpeg.org
> http://ffmpeg.org/mailman/listinfo/ffmpeg-devel
>


More information about the ffmpeg-devel mailing list