[Mplayer-cvslog] CVS: main/libmpdemux demux_mkv.c,1.23,1.24

Reimar Döffinger CVS syncmail at mplayerhq.hu
Sat Sep 18 16:35:21 CEST 2004


CVS change done by Reimar Döffinger CVS

Update of /cvsroot/mplayer/main/libmpdemux
In directory mail:/var2/tmp/cvs-serv17722/libmpdemux

Modified Files:
	demux_mkv.c 
Log Message:
fix playback of files with displaysize not set (aspect was set to NaN for these)


Index: demux_mkv.c
===================================================================
RCS file: /cvsroot/mplayer/main/libmpdemux/demux_mkv.c,v
retrieving revision 1.23
retrieving revision 1.24
diff -u -r1.23 -r1.24
--- demux_mkv.c	12 Sep 2004 14:01:13 -0000	1.23
+++ demux_mkv.c	18 Sep 2004 14:35:19 -0000	1.24
@@ -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




More information about the MPlayer-cvslog mailing list