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:
reimar 2004-09-18 14:35:19 +00:00
parent 41bab33be9
commit a894ca74e8
1 changed files with 2 additions and 0 deletions

View File

@ -1629,10 +1629,12 @@ demux_mkv_open_video (demuxer_t *demuxer, mkv_track_t *track)
track->v_frate = 25.0;
sh_v->fps = track->v_frate;
sh_v->frametime = 1 / track->v_frate;
sh_v->aspect = 0;
if (!track->realmedia)
{
sh_v->disp_w = track->v_width;
sh_v->disp_h = track->v_height;
if (track->v_dheight)
sh_v->aspect = (float)track->v_dwidth / (float)track->v_dheight;
}
else