Skip to content

Commit 6459655

Browse files
TianmiChensysopenci
authored andcommitted
Disable the optimization for 4K thumbnail generation
The reason is that video 4K thumbnail optimization own all buffers, but AnTuTu needs to get the buffer and convert the YUV to RGB. The video buffers may re-write when decoding the thumbnails. This caused video frames mismatch issue in AnTuTu video tests. We disable this 4K video thumbnail optimization to resovle it. Tracked-On: OAM-112346 Signed-off-by: Chen, Tianmi <[email protected]>
1 parent 288d62e commit 6459655

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

c2_components/src/mfx_c2_decoder_component.cpp

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1851,7 +1851,8 @@ c2_status_t MfxC2DecoderComponent::AllocateFrame(MfxC2FrameOut* frame_out)
18511851
}
18521852
}
18531853
} else {
1854-
if (m_mfxVideoParams.mfx.FrameInfo.Width >= WIDTH_2K || m_mfxVideoParams.mfx.FrameInfo.Height >= HEIGHT_2K) {
1854+
// Disable the optimization for 4K thumbnail generation
1855+
if (0/*m_mfxVideoParams.mfx.FrameInfo.Width >= WIDTH_2K || m_mfxVideoParams.mfx.FrameInfo.Height >= HEIGHT_2K*/) {
18551856
// Thumbnail generation for 4K/8K video
18561857
if (m_surfacePool.size() < m_surfaceNum) {
18571858
res = MfxC2FrameOut::Create(out_block, m_mfxVideoParams.mfx.FrameInfo, TIMEOUT_NS, frame_out);

0 commit comments

Comments
 (0)