Files
ffmpeg/libavcodec
llyyr 0b7f5b7566 lavc/vp9: reset segmentation fields when segmentation isn't enabled
Fields under the segmentation switch are never reset on a new frame, and
retain the value from the previous frame. This bugs out a bunch of
hwaccel drivers when segmentation is disabled but update_map isn't
reset because they don't ignore values behind switches. This commit also
resets the temporal field, though it may not be required.

We also do this for vp8 [1] so this commit is just mirroring the vp8
logic.

This fixes an issue with certain samples [2] that causes blocky
artifacts with vaapi, d3d11va and cuda (and possibly others).
Mesa worked around [3] this by ignoring these fields if
segmentation.enabled is 0, but d3d11va still displays blocky artifacts.

[1] 2e877090f9:/libavcodec/vp8.c#l797
[2] https://github.com/mpv-player/mpv/issues/13533
[3] https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/27816

Signed-off-by: llyyr <llyyr.public@gmail.com>
2024-05-27 12:45:32 +02:00
..
2023-03-27 13:37:26 +02:00
2021-01-01 15:25:48 +01:00
2021-07-22 14:47:57 +02:00
2022-09-01 00:41:28 +02:00
2021-04-27 10:43:15 -03:00
2021-04-27 10:43:15 -03:00
2021-04-27 10:43:15 -03:00
2021-10-03 11:42:15 +02:00
2022-03-28 23:18:56 +02:00
2021-04-27 10:43:15 -03:00
2014-04-22 20:44:31 +02:00
2020-12-08 17:51:47 +01:00
2021-04-27 10:43:15 -03:00
2021-04-27 10:43:15 -03:00
2020-08-26 21:13:38 +02:00
2021-04-27 10:43:15 -03:00
2021-10-08 20:37:36 +11:00
2021-10-08 20:37:36 +11:00
2021-04-27 10:43:15 -03:00
2022-01-04 13:16:49 +01:00
2022-01-04 13:16:49 +01:00
2021-03-22 02:43:04 +01:00
2020-03-12 20:26:48 +00:00
2021-04-27 10:43:15 -03:00
2022-11-03 23:29:46 +01:00
2021-08-05 19:46:33 +02:00
2017-09-16 19:55:03 +02:00
2021-04-27 10:43:15 -03:00
2021-04-27 10:43:15 -03:00
2022-09-01 00:41:28 +02:00
2021-10-09 11:42:16 +02:00
2023-03-27 13:37:16 +02:00
2022-01-04 12:08:18 +01:00
2020-11-24 11:35:03 +01:00
2021-04-27 10:43:15 -03:00
2021-12-03 16:09:14 +01:00
2021-12-03 16:09:14 +01:00
2021-04-27 10:43:15 -03:00
2021-04-27 10:43:15 -03:00
2021-04-27 10:43:15 -03:00
2022-03-28 23:18:56 +02:00
2021-04-27 10:43:15 -03:00
2021-04-27 10:43:15 -03:00
2021-04-27 10:43:15 -03:00
2020-05-26 10:52:12 +01:00
2020-05-26 10:52:12 +01:00
2021-01-01 15:25:48 +01:00
2021-07-22 14:47:57 +02:00
2021-10-02 18:49:40 +02:00
2021-04-27 10:43:15 -03:00
2021-04-27 10:43:15 -03:00
2021-05-05 14:17:03 +02:00
2021-04-27 10:43:15 -03:00
2021-04-27 10:43:15 -03:00
2023-03-27 13:37:17 +02:00
2023-03-27 13:37:16 +02:00
2021-04-27 10:43:15 -03:00
2021-10-10 17:44:41 +02:00
2023-03-27 13:37:15 +02:00
2023-03-27 13:37:14 +02:00
2020-01-13 23:26:25 +00:00
2021-04-27 10:43:15 -03:00
2021-04-27 10:43:15 -03:00
2022-09-01 00:41:28 +02:00
2021-04-27 10:43:15 -03:00
2021-04-27 10:43:15 -03:00
2021-04-27 10:43:15 -03:00