[vlc-commits] videotoolbox: remove useless check

Thomas Guillem git at videolan.org
Fri Jan 20 16:15:46 CET 2017


vlc | branch: master | Thomas Guillem <thomas at gllm.fr> | Fri Jan 20 16:05:31 2017 +0100| [df9f7fdcb08f409e6e8bbe1d85dcb557de8590c7] | committer: Thomas Guillem

videotoolbox: remove useless check

This case can't happen

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

 modules/codec/videotoolbox.m | 4 ----
 1 file changed, 4 deletions(-)

diff --git a/modules/codec/videotoolbox.m b/modules/codec/videotoolbox.m
index 39ef1df..30efd1a 100644
--- a/modules/codec/videotoolbox.m
+++ b/modules/codec/videotoolbox.m
@@ -1064,10 +1064,6 @@ static picture_t *DecodeBlock(decoder_t *p_dec, block_t **pp_block)
         goto skip;
     }
 
-    /* feed to vt */
-    if (unlikely(!p_block->i_buffer))
-        goto skip;
-
     if (!p_sys->session) {
         /* decoding didn't start yet, which is ok for H264, let's see
          * if we can use this block to get going */



More information about the vlc-commits mailing list