[vlc-commits] videotoolbox: don't trust kVTDecodeInfo_FrameDropped flag

Thomas Guillem git at videolan.org
Tue Apr 18 18:18:30 CEST 2017


vlc | branch: master | Thomas Guillem <thomas at gllm.fr> | Tue Apr 18 17:54:18 2017 +0200| [1439c0fb4bf887cfb05149cd4b1bcd89f317dd2c] | committer: Thomas Guillem

videotoolbox: don't trust kVTDecodeInfo_FrameDropped flag

> http://git.videolan.org/gitweb.cgi/vlc.git/?a=commit;h=1439c0fb4bf887cfb05149cd4b1bcd89f317dd2c
---

 modules/codec/videotoolbox.m | 3 +--
 1 file changed, 1 insertion(+), 2 deletions(-)

diff --git a/modules/codec/videotoolbox.m b/modules/codec/videotoolbox.m
index 4e1820370a..36850cd643 100644
--- a/modules/codec/videotoolbox.m
+++ b/modules/codec/videotoolbox.m
@@ -1521,9 +1521,8 @@ static void DecoderCallback(void *decompressionOutputRefCon,
 
     if (infoFlags & kVTDecodeInfo_FrameDropped)
     {
+        /* We can't trust VT, some decoded frames can be marked as dropped */
         msg_Dbg(p_dec, "decoder dropped frame");
-        free(p_info);
-        return;
     }
 
     if (!CMTIME_IS_VALID(pts))



More information about the vlc-commits mailing list