diff options
Diffstat (limited to 'video/decode/vd_lavc.c')
-rw-r--r-- | video/decode/vd_lavc.c | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/video/decode/vd_lavc.c b/video/decode/vd_lavc.c index 3b266aeb94..978462fbe5 100644 --- a/video/decode/vd_lavc.c +++ b/video/decode/vd_lavc.c @@ -757,6 +757,9 @@ static int control(sh_video_t *sh, int cmd, void *arg) if (ctx->vo_initialized) mpcodecs_reconfig_vo(sh, &ctx->image_params); return true; + case VDCTRL_GET_PARAMS: + *(struct mp_image_params *)arg = ctx->image_params; + return ctx->vo_initialized ? true : CONTROL_NA; } return CONTROL_UNKNOWN; } |