[vlc-commits] codec: videotoolbox: don't try to strip annexB on raw sps (fix #15416)

Francois Cartegnie git at videolan.org
Fri Apr 29 11:23:34 CEST 2016


vlc | branch: master | Francois Cartegnie <fcvlcdev at free.fr> | Fri Apr 29 11:21:43 2016 +0200| [7fef98f51480ebcebf42f9f90be129c8115f6cc9] | committer: Francois Cartegnie

codec: videotoolbox: don't try to strip annexB on raw sps (fix #15416)

Happens on stream restart

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

 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 840876e..75e2219 100644
--- a/modules/codec/videotoolbox.m
+++ b/modules/codec/videotoolbox.m
@@ -357,8 +357,7 @@ static int StartVideoToolbox(decoder_t *p_dec, block_t *p_block)
         const uint8_t *p_stp_sps_buf = p_sps_buf;
         size_t i_stp_sps_nal = i_sps_size;
         h264_sequence_parameter_set_t *p_sps_data;
-        if( !hxxx_strip_AnnexB_startcode( &p_stp_sps_buf, &i_stp_sps_nal ) ||
-            !( p_sps_data = h264_decode_sps(p_stp_sps_buf, i_stp_sps_nal, true) ) )
+        if( !( p_sps_data = h264_decode_sps(p_stp_sps_buf, i_stp_sps_nal, true) ) )
         {
             msg_Warn(p_dec, "sps pps parsing failed");
             return VLC_EGENERIC;



More information about the vlc-commits mailing list