changeset 13381:8db5683d2b3c

fix playback of files with displaysize not set (aspect was set to NaN for these)
author reimar
date Sat, 18 Sep 2004 14:35:19 +0000
parents 1916851d90a3
children e20fbb99d7f9
files libmpdemux/demux_mkv.c
diffstat 1 files changed, 2 insertions(+), 0 deletions(-) [+]
line wrap: on
line diff
--- a/libmpdemux/demux_mkv.c	Sat Sep 18 14:20:14 2004 +0000
+++ b/libmpdemux/demux_mkv.c	Sat Sep 18 14:35:19 2004 +0000
@@ -1629,10 +1629,12 @@
     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