X-Git-Url: http://git.videolan.org/?p=ffmpeg.git;a=blobdiff_plain;f=libavcodec%2Fwebp.c;h=16c3ae2662546808f0b6238c9f2ae703373b88d1;hp=21e3bcfa0a9c0a0949315ce83c3912a7d1182e09;hb=72810d20b74f05cc4b214d6c277fa6f43160df54;hpb=c4f63b78b71e07dd2f5d49c032d9c3eef620c0f3 diff --git a/libavcodec/webp.c b/libavcodec/webp.c index 21e3bcfa0a..16c3ae2662 100644 --- a/libavcodec/webp.c +++ b/libavcodec/webp.c @@ -1351,6 +1351,9 @@ static int vp8_lossy_decode_frame(AVCodecContext *avctx, AVFrame *p, ret = ff_vp8_decode_frame(avctx, p, got_frame, &pkt); if (ret < 0) return ret; + + update_canvas_size(avctx, avctx->width, avctx->height); + if (s->has_alpha) { ret = vp8_lossy_decode_alpha(avctx, p, s->alpha_data, s->alpha_data_size);