[MPlayer-dev-eng] [PATCH] Remove one warning from mpegpes.c

Carl Eugen Hoyos cehoyos at ag.or.at
Wed Jan 31 01:40:35 CET 2007


Hi!

Attached patch removes the warning from compiling libmpcodecs/vd_mpegpes.c:
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

Carl Eugen
-------------- next part --------------
Index: libmpdemux/mpeg_hdr.c
===================================================================
--- libmpdemux/mpeg_hdr.c	(Revision 22086)
+++ libmpdemux/mpeg_hdr.c	(Arbeitskopie)
@@ -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;
 
Index: libmpdemux/mpeg_hdr.h
===================================================================
--- libmpdemux/mpeg_hdr.h	(Revision 22086)
+++ libmpdemux/mpeg_hdr.h	(Arbeitskopie)
@@ -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);


More information about the MPlayer-dev-eng mailing list