[vlc-commits] packetizer: h264: fix null dereference (cid #1346950, #1346949)

Francois Cartegnie git at videolan.org
Thu Dec 31 18:01:15 CET 2015


vlc | branch: master | Francois Cartegnie <fcvlcdev at free.fr> | Thu Dec 31 17:45:19 2015 +0100| [60d127b43f36c81bf9396e7f43c2907bb796cc4c] | committer: Francois Cartegnie

packetizer: h264: fix null dereference (cid #1346950, #1346949)

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

 modules/packetizer/h264.c |    4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)

diff --git a/modules/packetizer/h264.c b/modules/packetizer/h264.c
index dcc8958..d6f19e3 100644
--- a/modules/packetizer/h264.c
+++ b/modules/packetizer/h264.c
@@ -723,7 +723,7 @@ static void PutSPS( decoder_t *p_dec, block_t *p_frag )
     h264_sequence_parameter_set_t *p_sps = h264_decode_sps( p_buffer, i_buffer, true );
     if( !p_sps )
     {
-        msg_Warn( p_dec, "invalid SPS (sps_id=%d)", p_sps->i_id );
+        msg_Warn( p_dec, "invalid SPS" );
         block_Release( p_frag );
         return;
     }
@@ -789,7 +789,7 @@ static void PutPPS( decoder_t *p_dec, block_t *p_frag )
     h264_picture_parameter_set_t *p_pps = h264_decode_pps( p_buffer, i_buffer, true );
     if( !p_pps )
     {
-        msg_Warn( p_dec, "invalid PPS (pps_id=%d sps_id=%d)", p_pps->i_id, p_pps->i_sps_id );
+        msg_Warn( p_dec, "invalid PPS" );
         block_Release( p_frag );
         return;
     }



More information about the vlc-commits mailing list