mp_image: remove local params copy from mp_image_setfmt

No longer needed after 079f67268f.
This commit is contained in:
Kacper Michajłow 2023-11-23 05:36:53 +01:00 committed by sfan5
parent 92c81e9666
commit 4e84ea22d7
1 changed files with 1 additions and 3 deletions

View File

@ -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)