[vlc-commits] h264: kill a warning in nal_decode by making src pointer const

Felix Abecassis git at videolan.org
Tue Sep 2 11:24:40 CEST 2014


vlc | branch: master | Felix Abecassis <felix.abecassis at gmail.com> | Tue Sep  2 11:05:37 2014 +0200| [5810e8b0beece4faefddc6ba0d7c7dff1cc0eae1] | committer: Felix Abecassis

h264: kill a warning in nal_decode by making src pointer const

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

 modules/demux/mpeg/mpeg_parser_helpers.h |    2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/modules/demux/mpeg/mpeg_parser_helpers.h b/modules/demux/mpeg/mpeg_parser_helpers.h
index 362ae6b..3f39539 100644
--- a/modules/demux/mpeg/mpeg_parser_helpers.h
+++ b/modules/demux/mpeg/mpeg_parser_helpers.h
@@ -70,7 +70,7 @@ static inline int32_t bs_read_se( bs_t *s )
     return val&0x01 ? (val+1)/2 : -(val/2);
 }
 
-static inline size_t nal_decode(uint8_t * p_src, uint8_t * p_dst, size_t i_size)
+static inline size_t nal_decode(const uint8_t * p_src, uint8_t * p_dst, size_t i_size)
 {
     size_t j = 0;
     for (size_t i = 0; i < i_size; i++) {



More information about the vlc-commits mailing list