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