diff options
author | Mark Thompson <sw@jkqxz.net> | 2017-11-18 17:55:18 +0000 |
---|---|---|
committer | Mark Thompson <sw@jkqxz.net> | 2017-11-26 21:41:19 +0000 |
commit | 9f00fa536938130e3c7ad2640a61795770d419a1 (patch) | |
tree | 9f518033ce71fd69453dd88d24ea0732ccdc06c0 /libavcodec/webp.c | |
parent | efd0612fdcb7490ed371899f532d73ef8bb7cba0 (diff) | |
download | ffmpeg-9f00fa536938130e3c7ad2640a61795770d419a1.tar.gz |
vp8: Add hwaccel hooks
Also adds some extra fields to the main context structure that may
be needed by a hwaccel decoder.
The current behaviour of the WebP decoder is maintained by adding an
additional field to the VP8 decoder private context to indicate that
it is actually being used as WebP (no hwaccel is supported for that
case).
Diffstat (limited to 'libavcodec/webp.c')
-rw-r--r-- | libavcodec/webp.c | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/libavcodec/webp.c b/libavcodec/webp.c index c8475faa2d..077bb06f85 100644 --- a/libavcodec/webp.c +++ b/libavcodec/webp.c @@ -1335,6 +1335,7 @@ static int vp8_lossy_decode_frame(AVCodecContext *avctx, AVFrame *p, if (!s->initialized) { ff_vp8_decode_init(avctx); s->initialized = 1; + s->v.actually_webp = 1; } avctx->pix_fmt = s->has_alpha ? AV_PIX_FMT_YUVA420P : AV_PIX_FMT_YUV420P; s->lossless = 0; |