diff --git a/media_softlet/agnostic/common/vp/hal/feature_manager/sw_filter_pipe.h b/media_softlet/agnostic/common/vp/hal/feature_manager/sw_filter_pipe.h index e6e2c541c74..553cc6540df 100644 --- a/media_softlet/agnostic/common/vp/hal/feature_manager/sw_filter_pipe.h +++ b/media_softlet/agnostic/common/vp/hal/feature_manager/sw_filter_pipe.h @@ -205,7 +205,8 @@ class SwFilterPipe RenderTargetType GetRenderTargetType() { - for (auto subpipe : m_InputPipes) + std::vector &pipes = (m_InputPipes.size() == 0) ? m_OutputPipes : m_InputPipes; + for (auto subpipe : pipes) { if (subpipe) {