diff options
author | Boyuan Yang <byang@debian.org> | 2022-07-14 15:56:59 -0400 |
---|---|---|
committer | Boyuan Yang <byang@debian.org> | 2022-07-14 15:56:59 -0400 |
commit | 1a2e17bd28a068714658551c8c355171ce15dfa0 (patch) | |
tree | db9e739007016850ee355365874a20b07034ef2c /src/buffer_pool.cc | |
parent | a08da9600832caf817125edee2c3206fe24cd5cb (diff) | |
parent | d4dbf19f6b0181ee78034bfe4caf189d1c016998 (diff) | |
download | libgav1-1a2e17bd28a068714658551c8c355171ce15dfa0.tar.gz libgav1-1a2e17bd28a068714658551c8c355171ce15dfa0.tar.bz2 libgav1-1a2e17bd28a068714658551c8c355171ce15dfa0.zip |
Update upstream source from tag 'upstream/0.18.0'
Update to upstream version '0.18.0'
with Debian dir a69c1f7f3e7109393a3f9f5f1a2e7a5c3d3eda9f
Diffstat (limited to 'src/buffer_pool.cc')
-rw-r--r-- | src/buffer_pool.cc | 10 |
1 files changed, 3 insertions, 7 deletions
diff --git a/src/buffer_pool.cc b/src/buffer_pool.cc index c1a5606..582f13c 100644 --- a/src/buffer_pool.cc +++ b/src/buffer_pool.cc @@ -156,19 +156,15 @@ bool BufferPool::OnFrameBufferSizeChanged(int bitdepth, } RefCountedBufferPtr BufferPool::GetFreeBuffer() { - // In frame parallel mode, the GetFreeBuffer() calls from ObuParser all happen - // from the same thread serially, but the GetFreeBuffer() call in - // DecoderImpl::ApplyFilmGrain can happen from multiple threads at the same - // time. So this function has to be thread safe. - // TODO(b/142583029): Investigate if the GetFreeBuffer() call in - // DecoderImpl::ApplyFilmGrain() call can be serialized so that this function - // need not be thread safe. std::unique_lock<std::mutex> lock(mutex_); for (auto buffer : buffers_) { if (!buffer->in_use_) { buffer->in_use_ = true; buffer->progress_row_ = -1; buffer->frame_state_ = kFrameStateUnknown; + buffer->hdr_cll_set_ = false; + buffer->hdr_mdcv_set_ = false; + buffer->itut_t35_set_ = false; lock.unlock(); return RefCountedBufferPtr(buffer, RefCountedBuffer::ReturnToBufferPool); } |