Files
FFmpeg/libavcodec
llyyr bbd0c2f131 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] https://git.ffmpeg.org/gitweb/ffmpeg.git/blob/2e877090f958131accb8c7e5ac10e5b9865d1735:/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:57 +02:00
..
2023-04-07 23:40:49 +02:00
2023-12-21 22:44:01 +01:00
2021-01-01 15:25:48 +01:00
2021-01-01 15:25:48 +01:00
2021-06-18 20:53:56 +02:00
2022-09-25 13:51:42 +02:00
2021-03-05 19:45:00 +02:00
2020-10-15 22:53:56 +02:00
2022-04-06 20:27:35 +02:00
2020-12-08 17:51:48 +01:00
2020-12-08 17:51:47 +01:00
2021-03-09 13:41:22 +01:00
2020-08-26 21:13:38 +02:00
2020-08-26 21:13:38 +02:00
2021-02-27 17:09:44 +01:00
2021-03-01 06:10:44 +01:00
2020-12-08 17:51:44 +01:00
2021-03-01 17:36:42 +01:00
2021-03-01 17:36:42 +01:00
2021-02-09 15:01:34 +01:00
2021-03-09 13:41:22 +01:00
2020-11-12 15:55:16 +01:00
2021-03-08 19:19:19 +01:00
2021-03-09 13:41:22 +01:00
2021-01-08 05:05:10 +01:00
2021-01-21 17:13:54 +00:00
2021-01-21 17:13:54 +00:00
2022-09-25 13:51:46 +02:00
2021-01-21 17:13:54 +00:00
2020-06-05 18:14:17 +02:00
2020-11-24 11:35:03 +01:00
2020-06-15 04:22:28 +02:00
2021-03-01 06:10:44 +01:00
2020-07-20 18:41:09 +02:00
2020-07-20 18:41:09 +02:00
2022-04-06 20:27:35 +02:00
2021-03-09 13:41:22 +01:00
2020-12-31 11:49:43 +01:00
2020-11-24 09:38:35 +01:00
2020-12-08 17:51:47 +01:00
2020-05-12 01:00:28 +02:00
2020-11-11 18:36:09 +01: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-01-01 15:25:48 +01:00
2021-03-01 17:36:16 +01:00
2021-03-09 13:41:22 +01:00
2020-05-30 18:02:55 +02:00
2021-02-02 14:29:33 +01:00
2021-04-03 13:29:30 +02:00
2020-05-22 22:23:18 +02:00
2023-04-07 23:40:41 +02:00
2023-04-07 23:40:40 +02:00
2021-04-01 11:38:44 +02:00
2021-10-05 23:19:39 +02:00
2020-11-24 09:38:35 +01:00
2023-04-07 23:40:39 +02:00
2023-12-21 22:43:44 +01:00
2020-07-20 18:41:09 +02:00
2020-12-08 17:51:44 +01:00
2021-03-05 19:45:00 +02:00
2021-04-02 21:40:54 +02:00
2021-03-09 13:41:22 +01:00
2021-01-25 00:18:47 +01:00
2020-04-16 15:05:07 -03:00
2021-09-21 23:20:29 -03:00
2022-09-25 13:51:43 +02:00
2020-05-23 07:07:36 +02:00