[vlc-commits] xiph: constify xiph_PackHeaders()

Rémi Denis-Courmont git at videolan.org
Wed Aug 14 18:24:23 CEST 2019


vlc/vlc-3.0 | branch: master | Rémi Denis-Courmont <remi at remlab.net> | Tue Jul 23 20:40:29 2019 +0300| [b2d7c1a5ba8c09d4e30b28e94416f5902c4e2407] | committer: Hugo Beauzée-Luyssen

xiph: constify xiph_PackHeaders()

(cherry picked from commit 5de591e391ec000f89acbaece4934110cab46e31)
Signed-off-by: Hugo Beauzée-Luyssen <hugo at beauzee.fr>

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

 modules/demux/xiph.h | 4 +++-
 1 file changed, 3 insertions(+), 1 deletion(-)

diff --git a/modules/demux/xiph.h b/modules/demux/xiph.h
index a11f681db3..9ef5c527ee 100644
--- a/modules/demux/xiph.h
+++ b/modules/demux/xiph.h
@@ -112,7 +112,9 @@ static inline int xiph_SplitHeaders(unsigned packet_size[],
 }
 
 static inline int xiph_PackHeaders(int *extra_size, void **extra,
-                                   unsigned packet_size[], const void *packet[], unsigned packet_count )
+                                   unsigned packet_size[],
+                                   const void *const packet[],
+                                   unsigned packet_count)
 {
     if (packet_count <= 0 || packet_count > XIPH_MAX_HEADER_COUNT)
         return VLC_EGENERIC;



More information about the vlc-commits mailing list