changeset 24784:328d1b36952a

Mark constant argument of mp_header_process_sequence_header as such. fixes warning: vd_mpegpes.c: In function 'decode': vd_mpegpes.c:49: warning: passing argument 2 of 'mp_header_process_sequence_header' discards qualifiers from pointer target type
author diego
date Fri, 19 Oct 2007 10:08:02 +0000
parents ff964dd51573
children 230123782da0
files libmpdemux/mpeg_hdr.c libmpdemux/mpeg_hdr.h
diffstat 2 files changed, 2 insertions(+), 2 deletions(-) [+]
line wrap: on
line diff
--- a/libmpdemux/mpeg_hdr.c	Thu Oct 18 15:48:44 2007 +0000
+++ b/libmpdemux/mpeg_hdr.c	Fri Oct 19 10:08:02 2007 +0000
@@ -26,7 +26,7 @@
 };
 
 
-int mp_header_process_sequence_header (mp_mpeg_header_t * picture, unsigned char * buffer)
+int mp_header_process_sequence_header (mp_mpeg_header_t * picture, const unsigned char * buffer)
 {
     int width, height;
 
--- a/libmpdemux/mpeg_hdr.h	Thu Oct 18 15:48:44 2007 +0000
+++ b/libmpdemux/mpeg_hdr.h	Fri Oct 19 10:08:02 2007 +0000
@@ -20,7 +20,7 @@
     int picture_type;
 } mp_mpeg_header_t;
 
-int mp_header_process_sequence_header (mp_mpeg_header_t * picture, unsigned char * buffer);
+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);
 float mpeg12_aspect_info(mp_mpeg_header_t *picture);
 int mp4_header_process_vol(mp_mpeg_header_t * picture, unsigned char * buffer);