Commit 5282db59 authored by Andriy Gelman's avatar Andriy Gelman Committed by Michael Niedermayer

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: 's avatarMichael Niedermayer <michael@niedermayer.cc>
parent 78e7b703
......@@ -538,6 +538,8 @@ int ff_mpeg_update_thread_context(AVCodecContext *dst,
s->avctx->width = s1->avctx->width;
s->avctx->height = s1->avctx->height;
s->quarter_sample = s1->quarter_sample;
s->coded_picture_number = s1->coded_picture_number;
s->picture_number = s1->picture_number;
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment