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
1 changed files with 1 additions and 1 deletions

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;