mirror of
https://github.com/mpv-player/mpv
synced 2025-03-31 07:51:55 +00:00
demux_disc: fix aspect ratio retrieval (again)
Commit 127da161
was not properly tested either - it did nothing, and
just made it use the video bitstream aspect ratio determined by
libavformat (which isn't always the correct one).
This commit is contained in:
parent
31c29495ca
commit
f2187de8bb
@ -149,9 +149,9 @@ static void add_streams(demuxer_t *demuxer)
|
||||
if (stream_control(demuxer->stream, STREAM_CTRL_GET_ASPECT_RATIO, &ar)
|
||||
== STREAM_OK)
|
||||
{
|
||||
struct mp_image_params f = {.w = sh->video->disp_w * 1728,
|
||||
.h = sh->video->disp_h * 1728};
|
||||
mp_image_params_set_dsize(&f, f.w * ar, f.h / ar);
|
||||
struct mp_image_params f = {.w = src->video->disp_w,
|
||||
.h = src->video->disp_h};
|
||||
mp_image_params_set_dsize(&f, 1728 * ar, 1728);
|
||||
sh->video->par_w = f.p_w;
|
||||
sh->video->par_h = f.p_h;
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user