changeset 20636:325db3f2aba3

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)
author nicodvb
date Fri, 03 Nov 2006 22:53:24 +0000
parents 9ed557ae1383
children 092cb80a8ba4
files libmpdemux/demux_asf.c
diffstat 1 files changed, 5 insertions(+), 0 deletions(-) [+]
line wrap: on
line diff
--- a/libmpdemux/demux_asf.c	Fri Nov 03 22:03:58 2006 +0000
+++ b/libmpdemux/demux_asf.c	Fri Nov 03 22:53:24 2006 +0000
@@ -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;
+            }
         }
     }