[MPlayer-cvslog] r24812 - in trunk/libmpdemux: mpeg_hdr.c mpeg_hdr.h
diego
subversion at mplayerhq.hu
Fri Oct 19 12:08:03 CEST 2007
Author: diego
Date: Fri Oct 19 12:08:02 2007
New Revision: 24812
Log:
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
Modified:
trunk/libmpdemux/mpeg_hdr.c
trunk/libmpdemux/mpeg_hdr.h
Modified: trunk/libmpdemux/mpeg_hdr.c
==============================================================================
--- trunk/libmpdemux/mpeg_hdr.c (original)
+++ trunk/libmpdemux/mpeg_hdr.c Fri Oct 19 12:08:02 2007
@@ -26,7 +26,7 @@ static float frameratecode2framerate[16]
};
-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;
Modified: trunk/libmpdemux/mpeg_hdr.h
==============================================================================
--- trunk/libmpdemux/mpeg_hdr.h (original)
+++ trunk/libmpdemux/mpeg_hdr.h Fri Oct 19 12:08:02 2007
@@ -20,7 +20,7 @@ typedef struct {
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-cvslog
mailing list