1
0
mirror of https://github.com/mpv-player/mpv synced 2024-12-25 00:02:13 +00:00
mpv/libmpdemux
Uoti Urpala 07b7503200 demux_demuxers: fix seeking bug (--audiofile)
Demux_demuxers checked a pts value against 0 to see if it was unset,
but other code uses MP_NOPTS_VALUE for that now. As a result audio and
subtitle streams could seek to a large negative position (effectively
to 0) instead of the correct target position. This broke --audiofile;
the --initial-audio-sync code could compensate for wrong demuxer seek
up to 5 minutes from the start of the file, masking the bug, but
seeking further than that audio would seek to 0 instead.

Note that the current --audiofile implementation using the
demux_demuxers wrapper is a fundamentally unsound design and still not
expected to generally work properly even after fixing this particular
problem.
2011-10-23 03:29:42 +03:00
..
aac_hdr.c cleanup: shut up more warnings 2011-05-06 18:33:16 +03:00
aac_hdr.h
asf.h cosmetics: asf.h: Fix comment error 2011-07-06 06:52:22 +03:00
asfguid.h asfguid.h: Use AV_RL32 also in x86 2010-11-02 04:14:20 +02:00
asfheader.c demux_asf: Fix play duration calculation error 2011-07-06 07:23:26 +03:00
asfheader.h
aviheader.c cleanup: some warning fixes and minor cleanups 2011-06-29 09:17:19 +03:00
aviheader.h aviheader.h: avoid including demuxer.h 2011-08-19 21:37:16 +03:00
aviprint.c cleanup: malloc+memset->calloc, sizeof(TYPE)->sizeof(*ptr) 2010-11-02 04:16:46 +02:00
aviprint.h
demux_aac.c cleanup: remove NULL checks before free() all over the code 2010-11-14 13:11:20 +02:00
demux_asf.c cleanup: silence most of the clang warnings 2011-07-09 04:23:24 +03:00
demux_audio.c demux_audio: Do not generate nonsensical pts values for FLAC 2010-12-16 05:28:28 +02:00
demux_avi.c cleanup: shut up more warnings 2011-05-06 18:33:16 +03:00
demux_avs.c cleanup: malloc+memset->calloc, sizeof(TYPE)->sizeof(*ptr) 2010-11-02 04:16:46 +02:00
demux_avs.h
demux_demuxers.c demux_demuxers: fix seeking bug (--audiofile) 2011-10-23 03:29:42 +03:00
demux_edl.c EDL: add support for new EDL file format 2011-04-05 06:26:17 +03:00
demux_film.c cleanup: shut up more warnings 2011-05-06 18:33:16 +03:00
demux_fli.c cleanup: remove NULL checks before free() all over the code 2010-11-14 13:11:20 +02:00
demux_gif.c cleanup: shut up more warnings 2011-05-06 18:33:16 +03:00
demux_lavf.c demux_lavf: set rawvideo codec_tag based on pix_fmt 2011-10-18 06:49:56 +03:00
demux_lmlm4.c cleanup: malloc+memset->calloc, sizeof(TYPE)->sizeof(*ptr) 2010-11-02 04:16:46 +02:00
demux_mf.c demux_mf: fix option value allocated with strdup 2011-09-02 08:04:52 +03:00
demux_mkv.c demux_mkv: avoid hang with some broken files 2011-09-25 18:35:09 +03:00
demux_mng.c cleanup: remove NULL checks before free() all over the code 2010-11-14 13:11:20 +02:00
demux_mov.c cleanup: shut up more warnings 2011-05-06 18:33:16 +03:00
demux_mov.h
demux_mpc.c cleanup: remove NULL checks before free() all over the code 2010-11-14 13:11:20 +02:00
demux_mpg.c cleanup: fix mp_dbg() format string warnings 2011-07-01 03:37:34 +03:00
demux_nemesi.c demux_nemesi: Remove a pointless if 2010-11-02 04:16:46 +02:00
demux_nsv.c cleanup: fix mp_dbg() format string warnings 2011-07-01 03:37:34 +03:00
demux_nut.c cleanup: malloc+memset->calloc, sizeof(TYPE)->sizeof(*ptr) 2010-11-02 04:16:46 +02:00
demux_ogg.c demux: use talloc for sh_* structs and "lang" field 2011-07-03 15:01:24 +03:00
demux_ogg.h
demux_packet.h core, demux, vd_ffmpeg: pass side data from demux_lavf to vd_ffmpeg 2011-08-20 20:25:43 +03:00
demux_pva.c cleanup: shut up more warnings 2011-05-06 18:33:16 +03:00
demux_rawaudio.c cleanup: malloc+memset->calloc, sizeof(TYPE)->sizeof(*ptr) 2010-11-02 04:16:46 +02:00
demux_rawdv.c cleanup: malloc+memset->calloc, sizeof(TYPE)->sizeof(*ptr) 2010-11-02 04:16:46 +02:00
demux_rawvideo.c
demux_real.c build: fix --enable-debug, remove some "#ifdef MP_DEBUG" 2011-07-30 19:03:20 +03:00
demux_real.h
demux_realaud.c cleanup: remove NULL checks before free() all over the code 2010-11-14 13:11:20 +02:00
demux_roq.c cleanup: shut up more warnings 2011-05-06 18:33:16 +03:00
demux_rtp_codec.cpp cleanup: do libav* initialization on startup 2011-07-18 00:57:05 +03:00
demux_rtp_internal.h demuxer.h: avoid including stream.h 2011-08-19 21:37:16 +03:00
demux_rtp.cpp demuxer.h: avoid including stream.h 2011-08-19 21:37:16 +03:00
demux_rtp.h
demux_smjpeg.c cleanup: shut up more warnings 2011-05-06 18:33:16 +03:00
demux_ts.c cleanup: silence most of the clang warnings 2011-07-09 04:23:24 +03:00
demux_ts.h demux: Move mp_a52_framesize from demux_ts.c to parse_es.c 2010-11-02 04:15:48 +02:00
demux_ty_osd.c sub/OSD: move some related files to sub/ 2011-01-26 20:39:05 +02:00
demux_ty_osd.h cosmetics: make some arguments const, "unsigned char"->uint8_t 2010-12-16 04:57:18 +02:00
demux_ty.c demux_ty: disable -subcc functionality (demux_ty_osd) 2011-03-24 22:23:12 +02:00
demux_viv.c cleanup: fix mp_dbg() format string warnings 2011-07-01 03:37:34 +03:00
demux_vqf.c cleanup: demux_vqf: typo/wording fixes 2011-07-06 13:01:08 +03:00
demux_xmms_plugin.h
demux_xmms.c cleanup: malloc+memset->calloc, sizeof(TYPE)->sizeof(*ptr) 2010-11-02 04:16:46 +02:00
demux_y4m.c cleanup: malloc+memset->calloc, sizeof(TYPE)->sizeof(*ptr) 2010-11-02 04:16:46 +02:00
demuxer.c core, demux, vd_ffmpeg: pass side data from demux_lavf to vd_ffmpeg 2011-08-20 20:25:43 +03:00
demuxer.h demuxer.h: raise pad amount to allow compiling against FFmpeg 2011-08-26 06:29:36 +03:00
ebml_defs.c TOOLS/matroska.py: recognize 3 more elements 2010-11-21 14:20:38 +02:00
ebml_types.h TOOLS/matroska.py: recognize 3 more elements 2010-11-21 14:20:38 +02:00
ebml.c
ebml.h demux_mkv: simplify subtitle type recognition 2011-03-31 03:44:37 +03:00
extension.c
genres.h spelling fixes 2010-11-02 04:15:03 +02:00
matroska.h demux_mkv: support Blu-ray subtitles 2011-03-31 03:44:37 +03:00
mf.c cleanup: remove more warnings 2011-05-02 00:46:48 +03:00
mf.h
mp3_hdr.c
mp3_hdr.h mp3_hdr.h: fix mp_check_mp3_header() 2010-12-16 06:22:19 +02:00
mp_taglists.c demux/mp_taglists: Move Bink audio tags to override list 2011-07-06 20:27:45 +03:00
mp_taglists.h
mpeg_hdr.c cleanup: some warning fixes and minor cleanups 2011-06-29 09:17:19 +03:00
mpeg_hdr.h
mpeg_packetizer.c
mpeg_packetizer.h
ms_hdr.h
parse_es.c demux: Move mp_a52_framesize from demux_ts.c to parse_es.c 2010-11-02 04:15:48 +02:00
parse_es.h demux: Move mp_a52_framesize from demux_ts.c to parse_es.c 2010-11-02 04:15:48 +02:00
parse_mp4.c
parse_mp4.h
qtpalette.h
stheader.h audio/video: delete buggy "dynamic plugin" code 2011-10-20 02:16:35 +03:00
video.c cleanup: remove more warnings 2011-05-02 00:46:48 +03:00
yuv4mpeg_intern.h
yuv4mpeg_ratio.c
yuv4mpeg.c cleanup: shut up more warnings 2011-05-06 18:33:16 +03:00
yuv4mpeg.h