summaryrefslogtreecommitdiffstats
path: root/video/decode
diff options
context:
space:
mode:
authorwm4 <wm4@nowhere>2018-03-01 23:56:56 +0100
committerJan Ekström <jeebjp@gmail.com>2018-03-03 02:38:01 +0200
commit628805866de9a70be9def918e9d7fa22bb07559a (patch)
tree9035957afe0ff62d141ef3c9c5996155234ecc39 /video/decode
parentfd90c003d29e4de1def462c7d6fd127e9e9d75d2 (diff)
downloadmpv-628805866de9a70be9def918e9d7fa22bb07559a.tar.bz2
mpv-628805866de9a70be9def918e9d7fa22bb07559a.tar.xz
vd_lavc: fix inverted condition
Diffstat (limited to 'video/decode')
-rw-r--r--video/decode/vd_lavc.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/video/decode/vd_lavc.c b/video/decode/vd_lavc.c
index 4ccf62962b..94ddb384bd 100644
--- a/video/decode/vd_lavc.c
+++ b/video/decode/vd_lavc.c
@@ -1124,7 +1124,7 @@ static int control(struct mp_filter *vd, enum dec_ctrl cmd, void *arg)
AVCodecContext *avctx = ctx->avctx;
if (!avctx)
break;
- if (ctx->use_hwdec && strcmp(ctx->hwdec.method_name, "mmal"))
+ if (ctx->use_hwdec && strcmp(ctx->hwdec.method_name, "mmal") == 0)
break; // MMAL has arbitrary buffering, thus unknown
*(int *)arg = avctx->has_b_frames;
return CONTROL_TRUE;