mirror of
https://github.com/libretro/RetroArch
synced 2025-04-10 15:45:19 +00:00
Fixup FFmpeg build.
This commit is contained in:
parent
abee6c2d66
commit
c7de0f8b78
11
retroarch.c
11
retroarch.c
@ -1379,14 +1379,13 @@ void rarch_init_recording(void)
|
|||||||
else
|
else
|
||||||
params.aspect_ratio = (float)params.out_width / params.out_height;
|
params.aspect_ratio = (float)params.out_width / params.out_height;
|
||||||
|
|
||||||
if (g_settings.video.post_filter_record && g_extern.filter.active)
|
if (g_settings.video.post_filter_record && g_extern.filter.filter)
|
||||||
{
|
{
|
||||||
g_extern.filter.psize(¶ms.out_width, ¶ms.out_height);
|
params.pix_fmt = g_extern.filter.out_rgb32 ? FFEMU_PIX_ARGB8888 : FFEMU_PIX_RGB565;
|
||||||
params.pix_fmt = FFEMU_PIX_ARGB8888;
|
|
||||||
|
|
||||||
unsigned max_width = params.fb_width;
|
unsigned max_width = 0;
|
||||||
unsigned max_height = params.fb_height;
|
unsigned max_height = 0;
|
||||||
g_extern.filter.psize(&max_width, &max_height);
|
rarch_softfilter_get_max_output_size(g_extern.filter.filter, &max_width, &max_height);
|
||||||
params.fb_width = next_pow2(max_width);
|
params.fb_width = next_pow2(max_width);
|
||||||
params.fb_height = next_pow2(max_height);
|
params.fb_height = next_pow2(max_height);
|
||||||
}
|
}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user