[vlc-commits] h264_nal: fix memory corruption in parse_sps

David Fuhrmann git at videolan.org
Sat Dec 5 16:18:29 CET 2015


vlc | branch: master | David Fuhrmann <dfuhrmann at videolan.org> | Sat Dec  5 16:16:19 2015 +0100| [d405bfb6fdeac41112482bcce793ee4efa8d5d51] | committer: David Fuhrmann

h264_nal: fix memory corruption in parse_sps

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

 modules/packetizer/h264_nal.c |    2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/modules/packetizer/h264_nal.c b/modules/packetizer/h264_nal.c
index fee3f96..d5b04ae 100644
--- a/modules/packetizer/h264_nal.c
+++ b/modules/packetizer/h264_nal.c
@@ -417,7 +417,7 @@ int h264_parse_sps( const uint8_t *p_sps_buf, int i_sps_size,
                     struct nal_sps *p_sps )
 {
     uint8_t *pb_dec = NULL;
-    int     i_dec = 0;
+    size_t     i_dec = 0;
     bs_t s;
     int i_tmp;
 



More information about the vlc-commits mailing list