1
mirror of https://github.com/mpv-player/mpv synced 2024-10-02 16:25:33 +02:00

vd_lavc: fix inverted condition

This commit is contained in:
wm4 2018-03-01 23:56:56 +01:00 committed by Jan Ekström
parent fd90c003d2
commit 628805866d

View File

@ -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;