summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--sub/sd_lavc.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/sub/sd_lavc.c b/sub/sd_lavc.c
index d2e21fbd2b..3febe023d6 100644
--- a/sub/sd_lavc.c
+++ b/sub/sd_lavc.c
@@ -451,8 +451,8 @@ static void get_bitmaps(struct sd *sd, struct mp_osd_res d, int format,
h = priv->video_params.h;
}
if (current->src_w > w || current->src_h > h) {
- w = priv->video_params.w;
- h = priv->video_params.h;
+ w = MPMAX(priv->video_params.w, current->src_w);
+ h = MPMAX(priv->video_params.h, current->src_h);
}
if (opts->sub_pos != 100 && opts->ass_style_override) {