From 628805866de9a70be9def918e9d7fa22bb07559a Mon Sep 17 00:00:00 2001 From: wm4 Date: Thu, 1 Mar 2018 23:56:56 +0100 Subject: vd_lavc: fix inverted condition --- video/decode/vd_lavc.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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; -- cgit v1.2.3