summaryrefslogtreecommitdiffstats
path: root/video
diff options
context:
space:
mode:
authorKacper Michajłow <kasper93@gmail.com>2023-11-23 05:36:53 +0100
committersfan5 <sfan5@live.de>2023-11-28 10:46:16 +0100
commit4e84ea22d770c5fc1c6d5d64be01a74f693daae7 (patch)
tree20a89bbf8377ac1de0433ba1cca47a21170e7888 /video
parent92c81e9666c5cd299c07d4a2e6fb2c5b39b671b0 (diff)
downloadmpv-4e84ea22d770c5fc1c6d5d64be01a74f693daae7.tar.bz2
mpv-4e84ea22d770c5fc1c6d5d64be01a74f693daae7.tar.xz
mp_image: remove local params copy from mp_image_setfmt
No longer needed after 079f67268f6f5a2ecfd12277b246b1937493c092.
Diffstat (limited to 'video')
-rw-r--r--video/mp_image.c4
1 files changed, 1 insertions, 3 deletions
diff --git a/video/mp_image.c b/video/mp_image.c
index dff2051d39..e1f04ad6ba 100644
--- a/video/mp_image.c
+++ b/video/mp_image.c
@@ -192,13 +192,11 @@ static bool mp_image_alloc_planes(struct mp_image *mpi)
void mp_image_setfmt(struct mp_image *mpi, int out_fmt)
{
- struct mp_image_params params = mpi->params;
struct mp_imgfmt_desc fmt = mp_imgfmt_get_desc(out_fmt);
- params.imgfmt = fmt.id;
+ mpi->params.imgfmt = fmt.id;
mpi->fmt = fmt;
mpi->imgfmt = fmt.id;
mpi->num_planes = fmt.num_planes;
- mpi->params = params;
}
static void mp_image_destructor(void *ptr)