mirror of
https://github.com/mpv-player/mpv
synced 2025-01-09 00:19:32 +00:00
vo_rpi: fix compilation
Untested, but should be fine. Broken by commit 0a0bb905
.
Also fix the include statement in context_rpi.c, which caused another
compilation failure. Also untested. (Because I'm lazy.)
Fixes #2638.
This commit is contained in:
parent
4d43a0c997
commit
aa587580c8
@ -27,7 +27,7 @@
|
||||
#include "video/out/x11_common.h"
|
||||
#include "context.h"
|
||||
|
||||
#include "rpi.h"
|
||||
#include "context_rpi.h"
|
||||
|
||||
static void *get_proc_address(const GLubyte *name)
|
||||
{
|
||||
|
@ -455,15 +455,11 @@ static int reconfig(struct vo *vo, struct mp_image_params *params)
|
||||
|
||||
disable_renderer(vo);
|
||||
|
||||
AVRational dr = {params->d_w, params->d_h};
|
||||
AVRational ir = {params->w, params->h};
|
||||
AVRational par = av_div_q(dr, ir);
|
||||
|
||||
input->format->encoding = opaque ? MMAL_ENCODING_OPAQUE : MMAL_ENCODING_I420;
|
||||
input->format->es->video.width = MP_ALIGN_UP(params->w, ALIGN_W);
|
||||
input->format->es->video.height = MP_ALIGN_UP(params->h, ALIGN_H);
|
||||
input->format->es->video.crop = (MMAL_RECT_T){0, 0, params->w, params->h};
|
||||
input->format->es->video.par = (MMAL_RATIONAL_T){par.num, par.den};
|
||||
input->format->es->video.par = (MMAL_RATIONAL_T){params->p_w, params->d_w};
|
||||
input->format->es->video.color_space = map_csp(params->colorspace);
|
||||
|
||||
if (mmal_port_format_commit(input))
|
||||
|
Loading…
Reference in New Issue
Block a user