]> git.sesse.net Git - ffmpeg/commit
avcodec/mpeg: Initialize quarter_sample parameter from previous thread.
authorAndriy Gelman <andriy.gelman@gmail.com>
Thu, 13 Dec 2018 04:57:35 +0000 (23:57 -0500)
committerMichael Niedermayer <michael@niedermayer.cc>
Fri, 14 Dec 2018 18:09:11 +0000 (19:09 +0100)
commit5282db5929f25ca9566a47ad217794842b364afc
tree1cbb5e582bd1dff9bb43121632c5e532e1e8f416
parent78e7b70395e984326bf2b82727d9943ecc10617e
avcodec/mpeg: Initialize quarter_sample parameter from previous thread.

Fixes #7410.
The value of sub-pixel precision for me/mc can change during an Intra frame. In multi-threaded decoding this change is not propagated to other frame threads causing decoding artifacts. This patch initializes the sub-pixel precision parameter from previous thread, which fixes the issue.

Signed-off-by: Michael Niedermayer <michael@niedermayer.cc>
libavcodec/mpegvideo.c