Skip to content

Commit ac134ba

Browse files
zhangyichixsysopenci
authored andcommitted
[c2][decoder] Fixed the ERR_UNDEFINED_BEHAVIOR error in vp9 decoding
case:testFlushNative[39(c2.intel.vp9.decoder_video/x-vnd.on2.vp9)] The error comes from onevpl when we get multiple flushing request in decoding. The root is that vp9 don't need process the bs which the flag is config. Tracked-On: OAM-112305 Signed-off-by: zhangyichix <yichix.zhang@intel.com>
1 parent 6459655 commit ac134ba

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

c2_components/src/mfx_c2_decoder_component.cpp

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1997,8 +1997,8 @@ void MfxC2DecoderComponent::DoWork(std::unique_ptr<C2Work>&& work)
19971997
bool expect_output = false;
19981998
bool flushing = false;
19991999
bool codecConfig = ((incoming_flags & C2FrameData::FLAG_CODEC_CONFIG) != 0);
2000-
// Av1 don't need the bs which flag is config.
2001-
if (codecConfig && DECODER_AV1 == m_decoderType) {
2000+
// Av1 and VP9 don't need the bs which flag is config.
2001+
if (codecConfig && (DECODER_AV1 == m_decoderType || DECODER_VP9 == m_decoderType)) {
20022002
FillEmptyWork(std::move(work), C2_OK);
20032003
if (true == m_bInitialized) {
20042004
mfxStatus format_change_sts = HandleFormatChange();

0 commit comments

Comments
 (0)