[MPlayer-cvslog] r20652 - trunk/libmpdemux/demux_asf.c

nicodvb subversion at mplayerhq.hu
Fri Nov 3 23:53:24 CET 2006


Author: nicodvb
Date: Fri Nov  3 23:53:24 2006
New Revision: 20652

Modified:
   trunk/libmpdemux/demux_asf.c

Log:
don't set the resolution for dvr-ms files: in the asf headers it seems to
be always set incorrectly; the decoder will deal with it much better.
Patch by John Donaghy (johnfdonaghy gmail com)


Modified: trunk/libmpdemux/demux_asf.c
==============================================================================
--- trunk/libmpdemux/demux_asf.c	(original)
+++ trunk/libmpdemux/demux_asf.c	Fri Nov  3 23:53:24 2006
@@ -569,6 +569,11 @@
             sh_video=demuxer->video->sh;sh_video->ds=demuxer->video;
             //sh_video->fps=1000.0f; sh_video->frametime=0.001f; // 1ms  - now set when reading asf header
             //sh_video->i_bps=10*asf->packetsize; // FIXME!
+
+            if (asf->asf_is_dvr_ms) {
+                sh_video->bih->biWidth = 0;
+                sh_video->bih->biHeight = 0;
+            }
         }
     }
 



More information about the MPlayer-cvslog mailing list