[vlc-commits] videotoolbox: remove wrong assert/unreachable

Thomas Guillem git at videolan.org
Fri Jan 6 16:47:38 CET 2017


vlc | branch: master | Thomas Guillem <thomas at gllm.fr> | Fri Jan  6 16:44:31 2017 +0100| [93f5e013cad5c423a1c2ef83a7254d57999ac07f] | committer: Thomas Guillem

videotoolbox: remove wrong assert/unreachable

This path is totally reachable when h264 is not avcC.

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

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

diff --git a/modules/codec/videotoolbox.m b/modules/codec/videotoolbox.m
index 3bbf035..963e02f 100644
--- a/modules/codec/videotoolbox.m
+++ b/modules/codec/videotoolbox.m
@@ -407,10 +407,7 @@ static int StartVideoToolbox(decoder_t *p_dec, block_t *p_block)
             i_ret = VLC_SUCCESS;
         }
         else
-        {
-            vlc_assert_unreachable();
             return VLC_EGENERIC;
-        }
 
         /* get the SPS and PPS units from the NAL unit which is either
          * part of the demuxer's avvC atom or the mid stream data block */



More information about the vlc-commits mailing list