aboutsummaryrefslogtreecommitdiffstats
path: root/libavcodec/wmv2.h
diff options
context:
space:
mode:
authorllyyr <llyyr.public@gmail.com>2024-05-23 14:07:51 +0530
committerHendrik Leppkes <h.leppkes@gmail.com>2024-05-27 12:23:40 +0200
commit2b11a8b95b4ff27624330bd417da63b5c7c9367e (patch)
tree391811a53e409d0e57eeffe32152390fb484fa2f /libavcodec/wmv2.h
parent01c7f68f7aecafba64037ce47a757a058306c8d3 (diff)
downloadffmpeg-2b11a8b95b4ff27624330bd417da63b5c7c9367e.tar.gz
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>
Diffstat (limited to 'libavcodec/wmv2.h')
0 files changed, 0 insertions, 0 deletions