[MPlayer-dev-eng] [PATCH] fix seeking in dvr-ms

John Donaghy johnfdonaghy at gmail.com
Thu Jan 1 19:32:04 CET 2009


Hi

This patch make seeking work in dvr-ms files for the native asf demuxer. The
reason it doesn't currently work is that the max bitrate (as read from the
asf file header) is wrong in dvr-ms files. Instead I'm using the bitrate for
the video stream as read from the extended stream properties present in a
dvr-ms file.

I'm also resetting some asf specific values after the seek to ensure
playback continues correctly (these counters etc. are things that were added
in my original dvr-ms patch from a couple of years ago).

I'm also adding a line to correctly set the value of "asf->num_packets" in
case it is useful for something later.
-------------- next part --------------
A non-text attachment was scrubbed...
Name: asf.diff
Type: text/x-patch
Size: 1628 bytes
Desc: not available
URL: <http://lists.mplayerhq.hu/pipermail/mplayer-dev-eng/attachments/20090102/2f2f8792/attachment.bin>


More information about the MPlayer-dev-eng mailing list