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:
Andreas Huber
2011-01-10 12:02:35 -08:00
committed by Android Git Automerger

View File

@@ -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);