---恢复内容开始---
1、VideoToolBox硬件解码H264流的过程中,如果App从前台按Home键进入后台,会立马产生一个-12903的错误
如果这个时候重置解码器,继续解码,会遇到 -12911的错误 ,-12911代表一种数据错误
kVTPropertyNotSupportedErr = -12900, kVTPropertyReadOnlyErr = -12901, kVTParameterErr = -12902, kVTInvalidSessionErr = -12903, kVTAllocationFailedErr = -12904, kVTPixelTransferNotSupportedErr = -12905, // c.f. -8961 kVTCouldNotFindVideoDecoderErr = -12906, kVTCouldNotCreateInstanceErr = -12907, kVTCouldNotFindVideoEncoderErr = -12908, kVTVideoDecoderBadDataErr = -12909, // c.f. -8969 kVTVideoDecoderUnsupportedDataFormatErr = -12910, // c.f. -8970 kVTVideoDecoderMalfunctionErr = -12911, // c.f. -8960
当继续遇到I帧以后,后续的解码将会正常,也就意味着,解码器在后台可以工作
2、硬解过程中从后台切换到前台,工作状态不受影响
测试环境:iphone5s 10.2
时间: 2024-12-28 00:52:38