# HG changeset patch # User nicodvb # Date 1162594404 0 # Node ID 325db3f2aba30a8f665433f050bd18e341f75646 # Parent 9ed557ae1383adc8bb1214cc278e1078c344f102 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) diff -r 9ed557ae1383 -r 325db3f2aba3 libmpdemux/demux_asf.c --- 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; + } } }