summaryrefslogtreecommitdiffstats
path: root/player/video.c
diff options
context:
space:
mode:
Diffstat (limited to 'player/video.c')
-rw-r--r--player/video.c3
1 files changed, 1 insertions, 2 deletions
diff --git a/player/video.c b/player/video.c
index d2210b691d..21b8e58f3a 100644
--- a/player/video.c
+++ b/player/video.c
@@ -88,8 +88,7 @@ void update_fps(struct MPContext *mpctx)
static void set_allowed_vo_formats(struct vf_chain *c, struct vo *vo)
{
- for (int fmt = IMGFMT_START; fmt < IMGFMT_END; fmt++)
- c->allowed_output_formats[fmt - IMGFMT_START] = vo_query_format(vo, fmt);
+ vo_query_formats(vo, c->allowed_output_formats);
}
static int try_filter(struct MPContext *mpctx, struct mp_image_params params,