On Fri, Oct 31, 2014 at 04:48:08PM +0100, Michael Niedermayer wrote:
> Signed-off-by: Michael Niedermayer <michae...@gmx.at>
> ---
>  libavcodec/libwebpenc.c |   80 
> +++++++++++++++++++++++++++++++++++++++++++++--
>  1 file changed, 77 insertions(+), 3 deletions(-)
> 
> diff --git a/libavcodec/libwebpenc.c b/libavcodec/libwebpenc.c
> index 4cb8dc3..c7f9784 100644
> --- a/libavcodec/libwebpenc.c
> +++ b/libavcodec/libwebpenc.c
[...]
> +                alt_frame->format = AV_PIX_FMT_YUVA420P;
> +                for (y = 0; y < frame->height; y+= bs) {
> +                    for (x = 0; x < frame->width; x+= bs) {
> +                        int skip;
> +                        int sse = 0;
> +                        for (p = 0; p < 3; p++) {
> +                            int bs2 = bs >> !!p;

> +                            int w = frame->width  >> !!p;
> +                            int h = frame->height >> !!p;

Does it work with odd dimensions? Same below

[...]

-- 
Clément B.

Attachment: pgp_7KGBqAAa8.pgp
Description: PGP signature

_______________________________________________
ffmpeg-devel mailing list
ffmpeg-devel@ffmpeg.org
http://ffmpeg.org/mailman/listinfo/ffmpeg-devel

Reply via email to