mpv/video/decode
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
..
d3d.c video: make previously added hwdec params mechanism more generic 2017-10-16 17:00:38 +02:00
d3d.h video: drop old D3D11/DXVA2 support 2017-09-26 18:58:45 +02:00
dec_video.c demux: get rid of demux_packet.new_segment field 2017-10-24 19:35:55 +02:00
dec_video.h build: add preliminary LGPL mode 2017-09-21 13:56:27 +02:00
hw_d3d11va.c video: drop old D3D11/DXVA2 support 2017-09-26 18:58:45 +02:00
hw_dxva2.c video: drop old D3D11/DXVA2 support 2017-09-26 18:58:45 +02:00
hw_mediacodec.c hwdec: add mediacodec hardware decoder for IMGFMT_MEDIACODEC frames 2017-10-09 18:36:54 +02:00
hw_videotoolbox.c video: remove old videotoolbox support 2017-09-26 19:13:26 +02:00
lavc.h video: drop old cuda/cuvid hwaccel 2017-09-26 18:00:46 +02:00
vd.h
vd_lavc.c Add DRM_PRIME Format Handling and Display for RockChip MPP decoders 2017-10-23 21:07:24 +02:00