Mercurial > mplayer.hg
view mp3lib/Makefile @ 22616:09dc129234a0
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.
author | uau |
---|---|
date | Fri, 16 Mar 2007 14:55:41 +0000 |
parents | f826f57be4b4 |
children | eb1e8b907a9d |
line wrap: on
line source
include ../config.mak LIBNAME_COMMON = libmp3.a ifeq ($(TARGET_ARCH_SGI_MIPS),yes) OPTFLAGS := $(OPTFLAGS:-O4=-O0) endif SRCS_COMMON = sr1.c ifeq ($(TARGET_ARCH_X86_32),yes) SRCS_COMMON += decode_i586.c SRCS_COMMON-$(TARGET_MMX) += decode_MMX.c dct64_MMX.c tabinit_MMX.c SRCS_COMMON-$(TARGET_3DNOW) += dct36_3dnow.c dct64_3dnow.c SRCS_COMMON-$(TARGET_3DNOWEX) += dct36_k7.c dct64_k7.c SRCS_COMMON-$(TARGET_SSE) += dct64_sse.c endif SRCS_COMMON-$(TARGET_ALTIVEC) += dct64_altivec.c include ../mpcommon.mak decode_i586.o: CFLAGS += -fomit-frame-pointer %: %.c $(LIBNAME_COMMON) ../libvo/aclib.o ../mp_msg-mencoder.o ../cpudetect.o ../osdep/getch2.o $(CC) $(CFLAGS) -o $@ $^ -ltermcap -lm distclean:: rm -f test test2