[vlc-commits] codec: videotoolbox: fix comment

Francois Cartegnie git at videolan.org
Mon Sep 11 16:19:32 CEST 2017


vlc | branch: master | Francois Cartegnie <fcvlcdev at free.fr> | Thu Sep  7 17:54:15 2017 +0200| [1ca2e6ab81b189cc4c7cb173e182d368bd266d09] | committer: Thomas Guillem

codec: videotoolbox: fix comment

Signed-off-by: Thomas Guillem <thomas at gllm.fr>

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

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

diff --git a/modules/codec/videotoolbox.m b/modules/codec/videotoolbox.m
index 25b22ede24..05bbf0b335 100644
--- a/modules/codec/videotoolbox.m
+++ b/modules/codec/videotoolbox.m
@@ -1305,8 +1305,6 @@ static int DecodeBlock(decoder_t *p_dec, block_t *p_block)
 
     if (b_config_changed && p_info->b_flush)
     {
-        /* decoding didn't start yet, which is ok for H264, let's see
-         * if we can use this block to get going */
         assert(p_sys->codec == kCMVideoCodecType_H264);
         if (p_sys->session)
         {
@@ -1315,6 +1313,8 @@ static int DecodeBlock(decoder_t *p_dec, block_t *p_block)
             msg_Dbg(p_dec, "SPS/PPS changed: restarting H264 decoder");
             StopVideoToolbox(p_dec, true);
         }
+        /* else decoding didn't start yet, which is ok for H264, let's see
+         * if we can use this block to get going */
 
         int i_ret = SetH264DecoderInfo(p_dec, nil);
         if (i_ret == VLC_SUCCESS)



More information about the vlc-commits mailing list