mpv/libmpdemux
uau 8b59dd4d83 Matroska seeking fixes
If a relative seek forward went past the last index position the
Matroska demuxer did not seek to any index position. It did however set
the mkv_d->skip_to_timecode variable which meant that the next
fill_buffer() call would read from the current position until the target
position (probably the end of the file). Fix this by changing the code
to seek to the last index position if that is between the current and
target positions.

Also change backwards relative seek to accept an exactly matching index
position (<= vs <) and reorganize the seeking conditionals to allow
making the above change without turning the code into a complete mess.


git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@22634 b3059339-0415-0410-9bf9-f77b7e298cf2
2007-03-16 14:55:41 +00:00
..
Makefile Use explicit path for headers from the loader/ directory. 2007-03-15 22:34:45 +00:00
asf.h
asfheader.c Add explicit location for headers from the stream/ directory. 2007-03-15 18:36:36 +00:00
aviheader.c Add explicit location for headers from the stream/ directory. 2007-03-15 18:36:36 +00:00
aviheader.h
aviprint.c Add explicit location for headers from the stream/ directory. 2007-03-15 18:36:36 +00:00
demux_aac.c Add explicit location for headers from the stream/ directory. 2007-03-15 18:36:36 +00:00
demux_asf.c Add explicit location for headers from the stream/ directory. 2007-03-15 18:36:36 +00:00
demux_audio.c Add explicit location for headers from the stream/ directory. 2007-03-15 18:36:36 +00:00
demux_avi.c Add explicit location for headers from the stream/ directory. 2007-03-15 18:36:36 +00:00
demux_avs.c Use explicit path for headers from the loader/ directory. 2007-03-15 22:34:45 +00:00
demux_avs.h
demux_demuxers.c Add explicit location for headers from the stream/ directory. 2007-03-15 18:36:36 +00:00
demux_film.c Add explicit location for headers from the stream/ directory. 2007-03-15 18:36:36 +00:00
demux_fli.c Add explicit location for headers from the stream/ directory. 2007-03-15 18:36:36 +00:00
demux_gif.c Add explicit location for headers from the stream/ directory. 2007-03-15 18:36:36 +00:00
demux_lavf.c Add explicit location for headers from the stream/ directory. 2007-03-15 18:36:36 +00:00
demux_lmlm4.c Add explicit location for headers from the stream/ directory. 2007-03-15 18:36:36 +00:00
demux_mf.c Add explicit location for headers from the stream/ directory. 2007-03-15 18:36:36 +00:00
demux_mkv.c Matroska seeking fixes 2007-03-16 14:55:41 +00:00
demux_mov.c Add explicit location for headers from the stream/ directory. 2007-03-15 18:36:36 +00:00
demux_mpc.c Add explicit location for headers from the stream/ directory. 2007-03-15 18:36:36 +00:00
demux_mpg.c Add explicit location for headers from the stream/ directory. 2007-03-15 18:36:36 +00:00
demux_nsv.c Add explicit location for headers from the stream/ directory. 2007-03-15 18:36:36 +00:00
demux_nut.c Add explicit location for headers from the stream/ directory. 2007-03-15 18:36:36 +00:00
demux_nuv.c Add explicit location for headers from the stream/ directory. 2007-03-15 18:36:36 +00:00
demux_ogg.c Add explicit location for headers from the stream/ directory. 2007-03-15 18:36:36 +00:00
demux_pva.c Add explicit location for headers from the stream/ directory. 2007-03-15 18:36:36 +00:00
demux_rawaudio.c Add explicit location for headers from the stream/ directory. 2007-03-15 18:36:36 +00:00
demux_rawdv.c Add explicit location for headers from the stream/ directory. 2007-03-15 18:36:36 +00:00
demux_rawvideo.c Add explicit location for headers from the stream/ directory. 2007-03-15 18:36:36 +00:00
demux_real.c Add explicit location for headers from the stream/ directory. 2007-03-15 18:36:36 +00:00
demux_realaud.c Add explicit location for headers from the stream/ directory. 2007-03-15 18:36:36 +00:00
demux_roq.c Add explicit location for headers from the stream/ directory. 2007-03-15 18:36:36 +00:00
demux_rtp.cpp
demux_rtp.h Add explicit location for headers from the stream/ directory. 2007-03-15 18:36:36 +00:00
demux_rtp_codec.cpp
demux_rtp_internal.h Add explicit location for headers from the stream/ directory. 2007-03-15 18:36:36 +00:00
demux_smjpeg.c Add explicit location for headers from the stream/ directory. 2007-03-15 18:36:36 +00:00
demux_ts.c Add explicit location for headers from the stream/ directory. 2007-03-15 18:36:36 +00:00
demux_ty.c Add explicit location for headers from the stream/ directory. 2007-03-15 18:36:36 +00:00
demux_ty_osd.c Add explicit location for headers from the stream/ directory. 2007-03-15 18:36:36 +00:00
demux_viv.c Add explicit location for headers from the stream/ directory. 2007-03-15 18:36:36 +00:00
demux_vqf.c Add explicit location for headers from the stream/ directory. 2007-03-15 18:36:36 +00:00
demux_xmms.c Add explicit location for headers from the stream/ directory. 2007-03-15 18:36:36 +00:00
demux_xmms_plugin.h
demux_y4m.c Add explicit location for headers from the stream/ directory. 2007-03-15 18:36:36 +00:00
demuxer.c Add explicit location for headers from the stream/ directory. 2007-03-15 18:36:36 +00:00
demuxer.h
ebml.c Add explicit location for headers from the stream/ directory. 2007-03-15 18:36:36 +00:00
ebml.h
extension.c Add explicit location for headers from the stream/ directory. 2007-03-15 18:36:36 +00:00
genres.h
matroska.h
mf.c Add explicit location for headers from the stream/ directory. 2007-03-15 18:36:36 +00:00
mf.h
mp3_hdr.c
mp3_hdr.h
mpeg_hdr.c
mpeg_hdr.h
mpeg_packetizer.c
mpeg_packetizer.h
ms_hdr.h
muxer.c Add explicit location for headers from the stream/ directory. 2007-03-15 18:36:36 +00:00
muxer.h
muxer_avi.c Add explicit location for headers from the stream/ directory. 2007-03-15 18:36:36 +00:00
muxer_lavf.c Add explicit location for headers from the stream/ directory. 2007-03-15 18:36:36 +00:00
muxer_mpeg.c Add explicit location for headers from the stream/ directory. 2007-03-15 18:36:36 +00:00
muxer_rawaudio.c Add explicit location for headers from the stream/ directory. 2007-03-15 18:36:36 +00:00
muxer_rawvideo.c Add explicit location for headers from the stream/ directory. 2007-03-15 18:36:36 +00:00
nuppelvideo.h
parse_es.c Add explicit location for headers from the stream/ directory. 2007-03-15 18:36:36 +00:00
parse_es.h
parse_mp4.c Add explicit location for headers from the stream/ directory. 2007-03-15 18:36:36 +00:00
parse_mp4.h
qtpalette.h
stheader.h
video.c Add explicit location for headers from the stream/ directory. 2007-03-15 18:36:36 +00:00
yuv4mpeg.c
yuv4mpeg.h Add explicit location for headers from the stream/ directory. 2007-03-15 18:36:36 +00:00
yuv4mpeg_intern.h
yuv4mpeg_ratio.c