Skip to content

Commit 4ce7060

Browse files
committed
improvement(videotoolbox): deal DecoderBadDataErr in decoder cb
dorp the current poc when kVTVideoDecoderBadDataErr in decoder callback Signed-off-by: pingkai <pingkai010@gmail.com> (cherry picked from commit 4f9d542)
1 parent 33cfbef commit 4ce7060

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

framework/codec/Apple/AppleVideoToolBox.cpp

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -567,6 +567,10 @@ namespace Cicada {
567567

568568
if (status != noErr) {
569569
AF_LOGW("AFVTBDecoder decoder error %d\n", status);
570+
if (status == kVTVideoDecoderBadDataErr) {
571+
mThrowPacket = true;
572+
AF_LOGE("IOSVT: decode failed kVTVideoDecoderBadDataErr");
573+
}
570574
enqueueError(status, packet->getInfo().pts);
571575
}
572576

0 commit comments

Comments
 (0)