-
-
Save tmm1/8177164dd929b96fc72702aed65cd71d to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
diff --git a/libavcodec/videotoolbox.c b/libavcodec/videotoolbox.c | |
index b21eccb..2c34cbb 100644 | |
--- a/libavcodec/videotoolbox.c | |
+++ b/libavcodec/videotoolbox.c | |
@@ -315,6 +315,11 @@ static void videotoolbox_decoder_callback(void *opaque, | |
return; | |
} | |
+ if (flags & kVTDecodeInfo_FrameDropped) { | |
+ av_log(NULL, AV_LOG_DEBUG, "vt decoder cb: frame dropped\n"); | |
+ return; | |
+ } | |
+ | |
vtctx->frame = CVPixelBufferRetain(image_buffer); | |
} | |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment