mpv/video
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 video: add mp_image_params.hw_flags and add an example 2017-10-16 15:02:12 +02:00
out video : Move drm options to substruct. 2017-10-23 21:08:20 +02:00
csputils.c video: redo video equalizer option handling 2017-08-22 17:01:35 +02:00
csputils.h video: redo video equalizer option handling 2017-08-22 17:01:35 +02:00
fmt-conversion.c Add DRM_PRIME Format Handling and Display for RockChip MPP decoders 2017-10-23 21:07:24 +02:00
fmt-conversion.h video/fmt-conversion, img_format: change license to LGPL 2017-06-18 15:15:07 +02:00
hwdec.c video: add mp_image_params.hw_flags and add an example 2017-10-16 15:02:12 +02:00
hwdec.h Add DRM_PRIME Format Handling and Display for RockChip MPP decoders 2017-10-23 21:07:24 +02:00
image_loader.c x11: load icon differently 2017-07-01 15:56:12 +02:00
image_loader.h x11: load icon differently 2017-07-01 15:56:12 +02:00
image_writer.c Replace remaining avcodec_close() calls 2017-07-16 12:51:48 +02:00
image_writer.h image_writer, vo_image: change license to LGPL 2017-06-18 15:45:24 +02:00
img_format.c img_format: AV_PIX_FMT_PAL8 is RGB 2017-10-09 15:15:53 +02:00
img_format.h Add DRM_PRIME Format Handling and Display for RockChip MPP decoders 2017-10-23 21:07:24 +02:00
mp_image.c video: make previously added hwdec params mechanism more generic 2017-10-16 17:00:38 +02:00
mp_image.h video: add mp_image_params.hw_flags and add an example 2017-10-16 15:02:12 +02:00
mp_image_pool.c video: remove special path for hwdec screenshots 2017-10-16 17:07:35 +02:00
mp_image_pool.h vf_vavpp: use libavutil hw frames API for frame pool and upload 2017-09-29 18:17:51 +02:00
sws_utils.c build: add preliminary LGPL mode 2017-09-21 13:56:27 +02:00
sws_utils.h video: redo video equalizer option handling 2017-08-22 17:01:35 +02:00
vaapi.c vaapi: Use libva2 message callbacks 2017-10-09 21:35:47 +02:00
vaapi.h vaapi: replace error macro implementation 2017-09-30 16:07:00 +02:00
vdpau.c vdpau: remove some more dead code 2017-10-16 18:19:19 +02:00
vdpau.h vdpau: remove some more dead code 2017-10-16 18:19:19 +02:00
vdpau_functions.inc
vdpau_mixer.c video: redo video equalizer option handling 2017-08-22 17:01:35 +02:00
vdpau_mixer.h video: redo video equalizer option handling 2017-08-22 17:01:35 +02:00