Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/FFmpeg/FFmpeg.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMark Thompson <sw@jkqxz.net>2017-11-18 20:55:18 +0300
committerMark Thompson <sw@jkqxz.net>2017-11-27 00:41:19 +0300
commit9f00fa536938130e3c7ad2640a61795770d419a1 (patch)
tree9f518033ce71fd69453dd88d24ea0732ccdc06c0 /libavcodec/webp.c
parentefd0612fdcb7490ed371899f532d73ef8bb7cba0 (diff)
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.c1
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;