[SCM] libav/experimental: changes some function declarations from () to (void) as per ansi c. Patch by Stefan Huehner % stefan A huehner P org %
siretart at users.alioth.debian.org
siretart at users.alioth.debian.org
Sun Jun 30 15:58:33 UTC 2013
The following commit has been merged in the experimental branch:
commit 2b100ab2bff7993e2c662e80f53cdb76889a71d5
Author: Stefan Huehner <stefan at huehner.org>
Date: Wed Apr 4 11:51:08 2007 +0000
changes some function declarations from () to (void) as per ansi c.
Patch by Stefan Huehner % stefan A huehner P org %
Originally committed as revision 8625 to svn://svn.ffmpeg.org/ffmpeg/trunk
diff --git a/libavcodec/dca.c b/libavcodec/dca.c
index a57dcdc..b1a6dbb 100644
--- a/libavcodec/dca.c
+++ b/libavcodec/dca.c
@@ -185,7 +185,7 @@ typedef struct {
DSPContext dsp;
} DCAContext;
-static void dca_init_vlcs()
+static void dca_init_vlcs(void)
{
static int vlcs_inited = 0;
int i, j;
diff --git a/libavcodec/h264.c b/libavcodec/h264.c
index 2750173..085e18a 100644
--- a/libavcodec/h264.c
+++ b/libavcodec/h264.c
@@ -3029,7 +3029,7 @@ static void hl_motion(H264Context *h, uint8_t *dest_y, uint8_t *dest_cb, uint8_t
prefetch_motion(h, 1);
}
-static void decode_init_vlc(){
+static void decode_init_vlc(void){
static int done = 0;
if (!done) {
diff --git a/libavformat/allformats.h b/libavformat/allformats.h
index e82ab80..8b36c98 100644
--- a/libavformat/allformats.h
+++ b/libavformat/allformats.h
@@ -179,6 +179,6 @@ int pcm_read_seek(AVFormatContext *s,
/* rtsp.c */
int redir_open(AVFormatContext **ic_ptr, ByteIOContext *f);
/* rtp.c */
-void av_register_rtp_dynamic_payload_handlers();
+void av_register_rtp_dynamic_payload_handlers(void);
#endif
diff --git a/libavformat/rtp.c b/libavformat/rtp.c
index 493a89c..439fd6d 100644
--- a/libavformat/rtp.c
+++ b/libavformat/rtp.c
@@ -186,7 +186,7 @@ static void register_dynamic_payload_handler(RTPDynamicProtocolHandler *handler)
RTPFirstDynamicPayloadHandler= handler;
}
-void av_register_rtp_dynamic_payload_handlers()
+void av_register_rtp_dynamic_payload_handlers(void)
{
register_dynamic_payload_handler(&mp4v_es_handler);
register_dynamic_payload_handler(&mpeg4_generic_handler);
diff --git a/libavformat/rtp_h264.c b/libavformat/rtp_h264.c
index d38e878..0ae6aa6 100644
--- a/libavformat/rtp_h264.c
+++ b/libavformat/rtp_h264.c
@@ -312,7 +312,7 @@ static int h264_handle_packet(RTPDemuxContext * s,
}
/* ---------------- public code */
-static void *h264_new_extradata()
+static void *h264_new_extradata(void)
{
h264_rtp_extra_data *data =
av_mallocz(sizeof(h264_rtp_extra_data) +
--
Libav/FFmpeg packaging
More information about the pkg-multimedia-commits
mailing list