Browse Source

avcodec/vp8: Remove always-false hwaccel checks for VP7

Reviewed-by: Peter Ross <pross@xvid.org>
Signed-off-by: Andreas Rheinhardt <andreas.rheinhardt@outlook.com>
Andreas Rheinhardt 6 days ago
parent
commit
0349ae3ec4
1 changed files with 1 additions and 1 deletions
  1. 1 1
      libavcodec/vp8.c

+ 1 - 1
libavcodec/vp8.c

@@ -2727,7 +2727,7 @@ int vp78_decode_frame(AVCodecContext *avctx, AVFrame *rframe, int *got_frame,
     if (!is_vp7 && !s->actually_webp)
         ff_thread_finish_setup(avctx);
 
-    if (avctx->hwaccel) {
+    if (!is_vp7 && avctx->hwaccel) {
         const FFHWAccel *hwaccel = ffhwaccel(avctx->hwaccel);
         ret = hwaccel->start_frame(avctx, avpkt->data, avpkt->size);
         if (ret < 0)