Commit b5300c8a authored by Ronald S. Bultje's avatar Ronald S. Bultje

h264: don't write to source picture object in ff_h264_ref_picture().

Doing so is analogous to writing to source data in memcpy(), and causes
(harmless) tsan warnings in fate-h264.
parent 081c21ca
...@@ -70,8 +70,8 @@ int ff_h264_ref_picture(H264Context *h, H264Picture *dst, H264Picture *src) ...@@ -70,8 +70,8 @@ int ff_h264_ref_picture(H264Context *h, H264Picture *dst, H264Picture *src)
av_assert0(!dst->f->buf[0]); av_assert0(!dst->f->buf[0]);
av_assert0(src->f->buf[0]); av_assert0(src->f->buf[0]);
av_assert0(src->tf.f == src->f);
src->tf.f = src->f;
dst->tf.f = dst->f; dst->tf.f = dst->f;
ret = ff_thread_ref_frame(&dst->tf, &src->tf); ret = ff_thread_ref_frame(&dst->tf, &src->tf);
if (ret < 0) if (ret < 0)
......
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