Skip to content

[3.0] codec: videotoolbox: handle kVTVideoDecoderReferenceMissingErr

Marvin Scholz requested to merge ePirat/vlc:epirat-3.0.x-vt-missingref-fix into 3.0.x

The kVTVideoDecoderReferenceMissingErr error is not a critical one, but without it being handled here, it would lead to aborting with VideoToolbox and falling back to Software.

Reproduced this with a sample provided by zhilizhao(赵志立),
related to !1790.

I assume that before this error code was introduced in macOS 12/iOS 15,
VT did just return the NULL image buffer with a success status code,
leading to the issue seen in !1790.

(cherry picked from commit f7434e60fc38e78b9356600d1452e850eb5ec2d9)
Signed-off-by: Marvin Scholz <epirat07@gmail.com>
Edited by Marvin Scholz

Merge request reports