0
0
mirror of https://github.com/mpv-player/mpv.git synced 2024-09-20 12:02:23 +02:00
mpv/audio
wm4 a5b51f75dc demux: get rid of demux_packet.new_segment field
The new_segment field was used to track the decoder data flow handler of
timeline boundaries, which are used for ordered chapters etc. (anything
that sets demuxer_desc.load_timeline). This broke seeking with the
demuxer cache enabled. The demuxer is expected to set the new_segment
field after every seek or segment boundary switch, so the cached packets
basically contained incorrect values for this, and the decoders were not
initialized correctly.

Fix this by getting rid of the flag completely. Let the decoders instead
compare the segment information by content, which is hopefully enough.
(In theory, two segments with same information could perhaps appear in
broken-ish corner cases, or in an attempt to simulate looping, and such.
I preferred the simple solution over others, such as generating unique
and stable segment IDs.)

We still add a "segmented" field to make it explicit whether segments
are used, instead of doing something silly like testing arbitrary other
segment fields for validity.

Cached seeking with timeline stuff is still slightly broken even with
this commit: the seek logic is not aware of the overlap that segments
can have, and the timestamp clamping that needs to be performed in
theory to account for the fact that a packet might contain a frame that
is always clipped off by segment handling. This can be fixed later.
2017-10-24 19:35:55 +02:00
..
decode demux: get rid of demux_packet.new_segment field 2017-10-24 19:35:55 +02:00
filter build: add preliminary LGPL mode 2017-09-21 13:56:27 +02:00
out Add checks for HAVE_GPL to various GPL-only source files 2017-10-10 15:51:16 +02:00
aconverter.c audio: fix channel conversion with NA channels 2017-09-27 16:22:06 +02:00
aconverter.h audio: move libswresample wrapper out of audio filter code 2017-09-21 12:42:09 +02:00
aframe.c aframe: fix logically dead code 2017-10-18 12:11:37 +02:00
aframe.h audio: move libswresample wrapper out of audio filter code 2017-09-21 12:42:09 +02:00
audio_buffer.c audio_buffer: remove dependency on mp_audio 2017-09-21 04:10:19 +02:00
audio_buffer.h audio_buffer: remove dependency on mp_audio 2017-09-21 04:10:19 +02:00
audio.c audio: move libswresample wrapper out of audio filter code 2017-09-21 12:42:09 +02:00
audio.h audio: make libaf derived code optional 2017-09-21 12:48:30 +02:00
chmap_sel.c audio: use --audio-channels=auto behavior, except on ALSA 2016-08-04 20:49:20 +02:00
chmap_sel.h audio: use --audio-channels=auto behavior, except on ALSA 2016-08-04 20:49:20 +02:00
chmap.c chmap: remove misleading "downmix" channel layout name 2017-06-24 11:36:10 +02:00
chmap.h player: remove special-case for DL/DR speakers 2016-08-04 19:14:35 +02:00
fmt-conversion.c audio/fmt-conversion: change license to LGPL 2017-05-05 07:25:55 +02:00
fmt-conversion.h audio/fmt-conversion: change license to LGPL 2017-05-05 07:25:55 +02:00
format.c audio: make libaf derived code optional 2017-09-21 12:48:30 +02:00
format.h audio: drop AF_FORMAT_S24 2017-07-07 17:56:22 +02:00