diff options
Diffstat (limited to 'video/image_writer.c')
-rw-r--r-- | video/image_writer.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/video/image_writer.c b/video/image_writer.c index b27f8660b2..af1dab294c 100644 --- a/video/image_writer.c +++ b/video/image_writer.c @@ -264,8 +264,8 @@ int write_image(struct mp_image *image, const struct image_writer_opts *opts, { struct mp_image *allocated_image = NULL; struct image_writer_opts defs = image_writer_opts_defaults; - int d_w = image->display_w ? image->display_w : image->w; - int d_h = image->display_h ? image->display_h : image->h; + int d_w = image->params.d_w; + int d_h = image->params.d_h; bool is_anamorphic = image->w != d_w || image->h != d_h; if (!opts) |