diff options
author | nicodvb <nicodvb@b3059339-0415-0410-9bf9-f77b7e298cf2> | 2006-11-03 22:53:24 +0000 |
---|---|---|
committer | nicodvb <nicodvb@b3059339-0415-0410-9bf9-f77b7e298cf2> | 2006-11-03 22:53:24 +0000 |
commit | a28d7004b4f077b186d066fa5ce2407d13c93e7d (patch) | |
tree | 06b70d9f3f3e37edf2dc368e75f69cd5f2ca13f8 /libmpdemux | |
parent | 0384045e300ab8b93251c7b3b962bdb1697a5b9c (diff) | |
download | mpv-a28d7004b4f077b186d066fa5ce2407d13c93e7d.tar.bz2 mpv-a28d7004b4f077b186d066fa5ce2407d13c93e7d.tar.xz |
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)
git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@20652 b3059339-0415-0410-9bf9-f77b7e298cf2
Diffstat (limited to 'libmpdemux')
-rw-r--r-- | libmpdemux/demux_asf.c | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/libmpdemux/demux_asf.c b/libmpdemux/demux_asf.c index d14cdb5612..8ce7820144 100644 --- a/libmpdemux/demux_asf.c +++ b/libmpdemux/demux_asf.c @@ -569,6 +569,11 @@ static demuxer_t* demux_open_asf(demuxer_t* demuxer) 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; + } } } |