Return a runtime error instead of asserting if the M4vH263Decoder fails in start()
Change-Id: Ie704a72685f749613fa0ed5fa6f461abc0406371 related-to-bug: 3328200
This commit is contained in:
@ -132,7 +132,10 @@ status_t M4vH263Decoder::start(MetaData *) {
|
||||
}
|
||||
|
||||
MP4DecodingMode actualMode = PVGetDecBitstreamMode(mHandle);
|
||||
CHECK_EQ(mode, actualMode);
|
||||
if (mode != actualMode) {
|
||||
PVCleanUpVideoDecoder(mHandle);
|
||||
return UNKNOWN_ERROR;
|
||||
}
|
||||
|
||||
PVSetPostProcType((VideoDecControls *) mHandle, 0);
|
||||
|
||||
|
Reference in New Issue
Block a user