Video decoder input type is not used in implementation
of MJPEG video decoder and on newer versions it will report
error when trying to do so. We should skip setting it for
this specific codec.
Bug: https://jira-eu.sec.samsung.net/browse/VDGAME-589
Change-Id: Iccf1582d70436ebc4f490337e1168ddb557a0990
Signed-off-by: Jakub Gajownik <j.gajownik2@samsung.com>
bool OmxFacadeVideo::SetComponentConfiguration(
const std::string& component_name) {
+ if (codec_ == MediaVideoCodec::kCodecMJPEG) {
+ // Setting video decoder input param is treated as error with MJPEG decoder,
+ // so skip it to avoid errors.
+ return true;
+ }
+
OMX_VIDEO_PARAM_DECODERINPUTTYPE param{};
if (low_delay_) {
param.nVideoDecodingType = OMX_Video_Decoding_Clip;