diff libmpdemux/mpeg_hdr.h @ 34159:bf6f772e609d

Mark pointer arguments as const where possible.
author reimar
date Mon, 24 Oct 2011 16:20:00 +0000
parents 562cd6805eac
children
line wrap: on
line diff
--- a/libmpdemux/mpeg_hdr.h	Mon Oct 24 16:15:02 2011 +0000
+++ b/libmpdemux/mpeg_hdr.h	Mon Oct 24 16:20:00 2011 +0000
@@ -43,13 +43,13 @@
 } mp_mpeg_header_t;
 
 int mp_header_process_sequence_header (mp_mpeg_header_t * picture, const unsigned char * buffer);
-int mp_header_process_extension (mp_mpeg_header_t * picture, unsigned char * buffer);
+int mp_header_process_extension (mp_mpeg_header_t * picture, const unsigned char * buffer);
 float mpeg12_aspect_info(mp_mpeg_header_t *picture);
-int mp4_header_process_vol(mp_mpeg_header_t * picture, unsigned char * buffer);
-void mp4_header_process_vop(mp_mpeg_header_t * picture, unsigned char * buffer);
+int mp4_header_process_vol(mp_mpeg_header_t * picture, const unsigned char * buffer);
+void mp4_header_process_vop(mp_mpeg_header_t * picture, const unsigned char * buffer);
 int h264_parse_sps(mp_mpeg_header_t * picture, const unsigned char * buf, int len);
 int mp_vc1_decode_sequence_header(mp_mpeg_header_t * picture, const unsigned char * buf, int len);
 
-unsigned char mp_getbits(unsigned char *buffer, unsigned int from, unsigned char len);
+unsigned char mp_getbits(const unsigned char *buffer, unsigned int from, unsigned char len);
 
 #endif /* MPLAYER_MPEG_HDR_H */