mirror of
https://github.com/mpv-player/mpv
synced 2025-01-05 22:49:58 +00:00
fix playback of files with displaysize not set (aspect was set to NaN for these)
git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@13382 b3059339-0415-0410-9bf9-f77b7e298cf2
This commit is contained in:
parent
41bab33be9
commit
a894ca74e8
@ -1629,10 +1629,12 @@ demux_mkv_open_video (demuxer_t *demuxer, mkv_track_t *track)
|
|||||||
track->v_frate = 25.0;
|
track->v_frate = 25.0;
|
||||||
sh_v->fps = track->v_frate;
|
sh_v->fps = track->v_frate;
|
||||||
sh_v->frametime = 1 / track->v_frate;
|
sh_v->frametime = 1 / track->v_frate;
|
||||||
|
sh_v->aspect = 0;
|
||||||
if (!track->realmedia)
|
if (!track->realmedia)
|
||||||
{
|
{
|
||||||
sh_v->disp_w = track->v_width;
|
sh_v->disp_w = track->v_width;
|
||||||
sh_v->disp_h = track->v_height;
|
sh_v->disp_h = track->v_height;
|
||||||
|
if (track->v_dheight)
|
||||||
sh_v->aspect = (float)track->v_dwidth / (float)track->v_dheight;
|
sh_v->aspect = (float)track->v_dwidth / (float)track->v_dheight;
|
||||||
}
|
}
|
||||||
else
|
else
|
||||||
|
Loading…
Reference in New Issue
Block a user