diff --git a/libavdevice/alsa-audio-dec.c b/libavdevice/alsa-audio-dec.c index 5344b1988dbc252247f391688e1fb409ee32f0a2..b6a7ac20feeebb66f14e3b7865b097f7061290d8 100644 --- a/libavdevice/alsa-audio-dec.c +++ b/libavdevice/alsa-audio-dec.c @@ -52,8 +52,7 @@ #include "alsa-audio.h" -static av_cold int audio_read_header(AVFormatContext *s1, - AVFormatParameters *ap) +static av_cold int audio_read_header(AVFormatContext *s1) { AlsaData *s = s1->priv_data; AVStream *st; diff --git a/libavdevice/bktr.c b/libavdevice/bktr.c index 8abe5ef18ff90417344e545f17bc27145de93345..b35ec7cc87a4cd7dca27e9292768d9fdb14f1570 100644 --- a/libavdevice/bktr.c +++ b/libavdevice/bktr.c @@ -243,7 +243,7 @@ static int grab_read_packet(AVFormatContext *s1, AVPacket *pkt) return video_buf_size; } -static int grab_read_header(AVFormatContext *s1, AVFormatParameters *ap) +static int grab_read_header(AVFormatContext *s1) { VideoData *s = s1->priv_data; AVStream *st; diff --git a/libavdevice/dv1394.c b/libavdevice/dv1394.c index 69e59ec19b6afe854611761f2f97f8b55256dc54..f48d2b150693171af0a529a8ffd733ccf0473772 100644 --- a/libavdevice/dv1394.c +++ b/libavdevice/dv1394.c @@ -81,7 +81,7 @@ static int dv1394_start(struct dv1394_data *dv) return 0; } -static int dv1394_read_header(AVFormatContext * context, AVFormatParameters * ap) +static int dv1394_read_header(AVFormatContext * context) { struct dv1394_data *dv = context->priv_data; diff --git a/libavdevice/fbdev.c b/libavdevice/fbdev.c index 7444f47e570dadea69e4e2fbdd609d32db47ad53..f1889ef79e25b524e16946021f2ed8ac21a42de1 100644 --- a/libavdevice/fbdev.c +++ b/libavdevice/fbdev.c @@ -95,8 +95,7 @@ typedef struct { uint8_t *data; ///< framebuffer data } FBDevContext; -av_cold static int fbdev_read_header(AVFormatContext *avctx, - AVFormatParameters *ap) +av_cold static int fbdev_read_header(AVFormatContext *avctx) { FBDevContext *fbdev = avctx->priv_data; AVStream *st = NULL; diff --git a/libavdevice/jack_audio.c b/libavdevice/jack_audio.c index e68559e4d3323c3f3bc68a33bd504e01d8f94fb4..9f1bb23c3b6a752252fd031d65d0f1d051d3e874 100644 --- a/libavdevice/jack_audio.c +++ b/libavdevice/jack_audio.c @@ -221,7 +221,7 @@ static void stop_jack(JackData *self) ff_timefilter_destroy(self->timefilter); } -static int audio_read_header(AVFormatContext *context, AVFormatParameters *params) +static int audio_read_header(AVFormatContext *context) { JackData *self = context->priv_data; AVStream *stream; diff --git a/libavdevice/libcdio.c b/libavdevice/libcdio.c index e00272c1159939ed463f2b47d87f45f867d6631b..747adf9141fb5d2278afb0a0e469ebf74d865ce5 100644 --- a/libavdevice/libcdio.c +++ b/libavdevice/libcdio.c @@ -46,7 +46,7 @@ typedef struct CDIOContext { int paranoia_mode; } CDIOContext; -static av_cold int read_header(AVFormatContext *ctx, AVFormatParameters *ap) +static av_cold int read_header(AVFormatContext *ctx) { CDIOContext *s = ctx->priv_data; AVStream *st; diff --git a/libavdevice/libdc1394.c b/libavdevice/libdc1394.c index ac4bb093d421dbd10ec1495870bc1933ddd31e21..934e128f68d08ba96b1ea55acdd4302e9cdd0e91 100644 --- a/libavdevice/libdc1394.c +++ b/libavdevice/libdc1394.c @@ -117,7 +117,7 @@ static const AVClass libdc1394_class = { }; -static inline int dc1394_read_common(AVFormatContext *c, AVFormatParameters *ap, +static inline int dc1394_read_common(AVFormatContext *c, struct dc1394_frame_format **select_fmt, struct dc1394_frame_rate **select_fps) { dc1394_data* dc1394 = c->priv_data; @@ -191,7 +191,7 @@ out: } #if HAVE_LIBDC1394_1 -static int dc1394_v1_read_header(AVFormatContext *c, AVFormatParameters * ap) +static int dc1394_v1_read_header(AVFormatContext *c) { dc1394_data* dc1394 = c->priv_data; AVStream* vst; @@ -200,7 +200,7 @@ static int dc1394_v1_read_header(AVFormatContext *c, AVFormatParameters * ap) struct dc1394_frame_format *fmt = NULL; struct dc1394_frame_rate *fps = NULL; - if (dc1394_read_common(c,ap,&fmt,&fps) != 0) + if (dc1394_read_common(c, &fmt, &fps) != 0) return -1; /* Now let us prep the hardware. */ @@ -285,7 +285,7 @@ static int dc1394_v1_close(AVFormatContext * context) } #elif HAVE_LIBDC1394_2 -static int dc1394_v2_read_header(AVFormatContext *c, AVFormatParameters * ap) +static int dc1394_v2_read_header(AVFormatContext *c) { dc1394_data* dc1394 = c->priv_data; dc1394camera_list_t *list; @@ -293,7 +293,7 @@ static int dc1394_v2_read_header(AVFormatContext *c, AVFormatParameters * ap) struct dc1394_frame_format *fmt = NULL; struct dc1394_frame_rate *fps = NULL; - if (dc1394_read_common(c,ap,&fmt,&fps) != 0) + if (dc1394_read_common(c, &fmt, &fps) != 0) return -1; /* Now let us prep the hardware. */ diff --git a/libavdevice/oss_audio.c b/libavdevice/oss_audio.c index 308fc0df970b94982f76be5c5144be874f53c54f..e592c32849e231ad234edc47a5257ba8de4385e9 100644 --- a/libavdevice/oss_audio.c +++ b/libavdevice/oss_audio.c @@ -204,7 +204,7 @@ static int audio_write_trailer(AVFormatContext *s1) /* grab support */ -static int audio_read_header(AVFormatContext *s1, AVFormatParameters *ap) +static int audio_read_header(AVFormatContext *s1) { AudioData *s = s1->priv_data; AVStream *st; diff --git a/libavdevice/pulse.c b/libavdevice/pulse.c index bffe3914b8107c3ac181088fae5904dd7b2ee2b2..da6ee72e8e097aca72e45adcf8893ba19d7a34e7 100644 --- a/libavdevice/pulse.c +++ b/libavdevice/pulse.c @@ -66,8 +66,7 @@ static pa_sample_format_t codec_id_to_pulse_format(int codec_id) { } } -static av_cold int pulse_read_header(AVFormatContext *s, - AVFormatParameters *ap) +static av_cold int pulse_read_header(AVFormatContext *s) { PulseData *pd = s->priv_data; AVStream *st; diff --git a/libavdevice/sndio_dec.c b/libavdevice/sndio_dec.c index cc74c38a3983897703eec895b79b1925e998f577..840dd097a387e2ce774917ed4ff770d0b60e373c 100644 --- a/libavdevice/sndio_dec.c +++ b/libavdevice/sndio_dec.c @@ -28,8 +28,7 @@ #include "sndio_common.h" -static av_cold int audio_read_header(AVFormatContext *s1, - AVFormatParameters *ap) +static av_cold int audio_read_header(AVFormatContext *s1) { SndioData *s = s1->priv_data; AVStream *st; diff --git a/libavdevice/v4l2.c b/libavdevice/v4l2.c index 191decde2aa8e2c1169782d0388a8c44b4be89b7..b9941d212c58e9e277c420ffa8b6f69663e4b63c 100644 --- a/libavdevice/v4l2.c +++ b/libavdevice/v4l2.c @@ -543,7 +543,7 @@ static void mmap_close(struct video_data *s) av_free(s->buf_len); } -static int v4l2_set_parameters(AVFormatContext *s1, AVFormatParameters *ap) +static int v4l2_set_parameters(AVFormatContext *s1) { struct video_data *s = s1->priv_data; struct v4l2_input input = { 0 }; @@ -678,7 +678,7 @@ static uint32_t device_try_init(AVFormatContext *s1, return desired_format; } -static int v4l2_read_header(AVFormatContext *s1, AVFormatParameters *ap) +static int v4l2_read_header(AVFormatContext *s1) { struct video_data *s = s1->priv_data; AVStream *st; @@ -766,7 +766,7 @@ static int v4l2_read_header(AVFormatContext *s1, AVFormatParameters *ap) s->frame_format = desired_format; - if ((res = v4l2_set_parameters(s1, ap) < 0)) + if ((res = v4l2_set_parameters(s1) < 0)) goto out; st->codec->pix_fmt = fmt_v4l2ff(desired_format, codec_id); diff --git a/libavdevice/vfwcap.c b/libavdevice/vfwcap.c index b5baee3b793525b039726f8ac8db9127fde35cc0..44cb813bd95e60d56d860bd80dc3715bbe9ef570 100644 --- a/libavdevice/vfwcap.c +++ b/libavdevice/vfwcap.c @@ -238,7 +238,7 @@ static int vfw_read_close(AVFormatContext *s) return 0; } -static int vfw_read_header(AVFormatContext *s, AVFormatParameters *ap) +static int vfw_read_header(AVFormatContext *s) { struct vfw_ctx *ctx = s->priv_data; AVCodecContext *codec; diff --git a/libavdevice/x11grab.c b/libavdevice/x11grab.c index 9d12b2f731e1571b4172dee29fda2a55d28fdc96..bf3011bac8fceaa8baa038f84b1b368ca431a9e7 100644 --- a/libavdevice/x11grab.c +++ b/libavdevice/x11grab.c @@ -154,7 +154,7 @@ x11grab_region_win_init(struct x11_grab *s) * </ul> */ static int -x11grab_read_header(AVFormatContext *s1, AVFormatParameters *ap) +x11grab_read_header(AVFormatContext *s1) { struct x11_grab *x11grab = s1->priv_data; Display *dpy; diff --git a/libavformat/4xm.c b/libavformat/4xm.c index ccbe3add3f497f2efd89cb0e3e91a3afeb1405b6..fa6a26bcc2aab1f543c3696e3f386e52a89946f4 100644 --- a/libavformat/4xm.c +++ b/libavformat/4xm.c @@ -91,8 +91,7 @@ static int fourxm_probe(AVProbeData *p) return AVPROBE_SCORE_MAX; } -static int fourxm_read_header(AVFormatContext *s, - AVFormatParameters *ap) +static int fourxm_read_header(AVFormatContext *s) { AVIOContext *pb = s->pb; unsigned int fourcc_tag; diff --git a/libavformat/aacdec.c b/libavformat/aacdec.c index 25c59108fe6a8a2a5f0bc8093db58be20cb143c3..df94d15831b313cea80ac172246db0e2ce49beb0 100644 --- a/libavformat/aacdec.c +++ b/libavformat/aacdec.c @@ -61,8 +61,7 @@ static int adts_aac_probe(AVProbeData *p) else return 0; } -static int adts_aac_read_header(AVFormatContext *s, - AVFormatParameters *ap) +static int adts_aac_read_header(AVFormatContext *s) { AVStream *st; diff --git a/libavformat/adxdec.c b/libavformat/adxdec.c index ab11d832d8b1df75b1bc8de478dcd59136609cb4..243160940ce0d985805ee1d7719d02cb2cf2a58a 100644 --- a/libavformat/adxdec.c +++ b/libavformat/adxdec.c @@ -62,7 +62,7 @@ static int adx_read_packet(AVFormatContext *s, AVPacket *pkt) return 0; } -static int adx_read_header(AVFormatContext *s, AVFormatParameters *ap) +static int adx_read_header(AVFormatContext *s) { ADXDemuxerContext *c = s->priv_data; AVCodecContext *avctx; diff --git a/libavformat/aea.c b/libavformat/aea.c index b33b45f927ded93eb27c50baaa76b42ea06ee94d..b62e56030a1cbecae215cc2bfa3e2a943402bee2 100644 --- a/libavformat/aea.c +++ b/libavformat/aea.c @@ -54,8 +54,7 @@ static int aea_read_probe(AVProbeData *p) return 0; } -static int aea_read_header(AVFormatContext *s, - AVFormatParameters *ap) +static int aea_read_header(AVFormatContext *s) { AVStream *st = avformat_new_stream(s, NULL); if (!st) diff --git a/libavformat/aiffdec.c b/libavformat/aiffdec.c index 0e69d02c8c7c4b3d48d7c5e3253cfbfb430db76b..46396cda6f036eafd9f8d76f588e2166f511fdfa 100644 --- a/libavformat/aiffdec.c +++ b/libavformat/aiffdec.c @@ -174,8 +174,7 @@ static int aiff_probe(AVProbeData *p) } /* aiff input */ -static int aiff_read_header(AVFormatContext *s, - AVFormatParameters *ap) +static int aiff_read_header(AVFormatContext *s) { int size, filesize; int64_t offset = 0; diff --git a/libavformat/amr.c b/libavformat/amr.c index b52ac491289effb524359f15e511c5328331bd94..708eace1f9a0b2ae151192f63c7dfbb575d43a25 100644 --- a/libavformat/amr.c +++ b/libavformat/amr.c @@ -76,8 +76,7 @@ static int amr_probe(AVProbeData *p) } /* amr input */ -static int amr_read_header(AVFormatContext *s, - AVFormatParameters *ap) +static int amr_read_header(AVFormatContext *s) { AVIOContext *pb = s->pb; AVStream *st; diff --git a/libavformat/anm.c b/libavformat/anm.c index 7ceb2d8918d2f62b7310d2f9277779c4773486c6..f236ce6eeda64c504fa921e7519d8287f81e12d3 100644 --- a/libavformat/anm.c +++ b/libavformat/anm.c @@ -76,8 +76,7 @@ static int find_record(const AnmDemuxContext *anm, int record) return AVERROR_INVALIDDATA; } -static int read_header(AVFormatContext *s, - AVFormatParameters *ap) +static int read_header(AVFormatContext *s) { AnmDemuxContext *anm = s->priv_data; AVIOContext *pb = s->pb; diff --git a/libavformat/apc.c b/libavformat/apc.c index 47ab5c821b2e869c0b8bbfb4da563c59a4e4ffb2..30ddae3665b67089e0b629aa2be2d3dfac46cb1d 100644 --- a/libavformat/apc.c +++ b/libavformat/apc.c @@ -30,7 +30,7 @@ static int apc_probe(AVProbeData *p) return 0; } -static int apc_read_header(AVFormatContext *s, AVFormatParameters *ap) +static int apc_read_header(AVFormatContext *s) { AVIOContext *pb = s->pb; AVStream *st; diff --git a/libavformat/ape.c b/libavformat/ape.c index a60626e133a20a177794ef72ac6dfb7a0f3aec15..080e0ba8f6d9e83d823d905a6e952f89c11cbc94 100644 --- a/libavformat/ape.c +++ b/libavformat/ape.c @@ -152,7 +152,7 @@ static void ape_dumpinfo(AVFormatContext * s, APEContext * ape_ctx) #endif } -static int ape_read_header(AVFormatContext * s, AVFormatParameters * ap) +static int ape_read_header(AVFormatContext * s) { AVIOContext *pb = s->pb; APEContext *ape = s->priv_data; diff --git a/libavformat/applehttp.c b/libavformat/applehttp.c index f62e2d074f1d77801cfe608aec5c2fbda00bee54..32a51fede1adac15f2fd6817512b3b00db5a9754 100644 --- a/libavformat/applehttp.c +++ b/libavformat/applehttp.c @@ -443,7 +443,7 @@ reload: goto restart; } -static int applehttp_read_header(AVFormatContext *s, AVFormatParameters *ap) +static int applehttp_read_header(AVFormatContext *s) { AppleHTTPContext *c = s->priv_data; int ret = 0, i, j, stream_offset = 0; diff --git a/libavformat/asfdec.c b/libavformat/asfdec.c index 91d285e8b5c4ae31c3b793cd39082f825f0a930c..c5391a9d628d5cb098b7c5904135c126cd8908ed 100644 --- a/libavformat/asfdec.c +++ b/libavformat/asfdec.c @@ -580,7 +580,7 @@ static int asf_read_marker(AVFormatContext *s, int64_t size) return 0; } -static int asf_read_header(AVFormatContext *s, AVFormatParameters *ap) +static int asf_read_header(AVFormatContext *s) { ASFContext *asf = s->priv_data; ff_asf_guid g; diff --git a/libavformat/assdec.c b/libavformat/assdec.c index b100f2c5d1219192a673b438a42bbd83d605d5e5..bb1f525616c571a399c8327715c50e5f01337fda 100644 --- a/libavformat/assdec.c +++ b/libavformat/assdec.c @@ -73,7 +73,7 @@ static int event_cmp(uint8_t **a, uint8_t **b) return get_pts(*a) - get_pts(*b); } -static int read_header(AVFormatContext *s, AVFormatParameters *ap) +static int read_header(AVFormatContext *s) { int i, len, header_remaining; ASSContext *ass = s->priv_data; diff --git a/libavformat/au.c b/libavformat/au.c index c6fb8dbaa95d359ec558e6b698a59caea62d09f7..e56869b4b9217e38f6829ee65de0ed09003592a9 100644 --- a/libavformat/au.c +++ b/libavformat/au.c @@ -118,8 +118,7 @@ static int au_probe(AVProbeData *p) } /* au input */ -static int au_read_header(AVFormatContext *s, - AVFormatParameters *ap) +static int au_read_header(AVFormatContext *s) { int size; unsigned int tag; diff --git a/libavformat/avformat.h b/libavformat/avformat.h index 18a80ac29172f7ef0516602d12a142fd03915ba8..ec343ba90d500e4f7359213e5e615c5cf7f5df3b 100644 --- a/libavformat/avformat.h +++ b/libavformat/avformat.h @@ -491,8 +491,7 @@ typedef struct AVInputFormat { * additional parameters. Only used in raw format right * now. 'av_new_stream' should be called to create new streams. */ - int (*read_header)(struct AVFormatContext *, - AVFormatParameters *ap); + int (*read_header)(struct AVFormatContext *); /** * Read one packet and put it in 'pkt'. pts and flags are also diff --git a/libavformat/avidec.c b/libavformat/avidec.c index b4ccfb50f8a928f850207f6f82db9480cef2bf3f..26ccaadd12b4e7f62bf5e2c4d72a2de9feee3578 100644 --- a/libavformat/avidec.c +++ b/libavformat/avidec.c @@ -325,7 +325,7 @@ static void avi_read_nikon(AVFormatContext *s, uint64_t end) } } -static int avi_read_header(AVFormatContext *s, AVFormatParameters *ap) +static int avi_read_header(AVFormatContext *s) { AVIContext *avi = s->priv_data; AVIOContext *pb = s->pb; diff --git a/libavformat/avisynth.c b/libavformat/avisynth.c index 9449c1b608a47ec36e25d389574403e8da3997ce..3b695a9a0aaa19cf0f622aa191c93171e193f0f1 100644 --- a/libavformat/avisynth.c +++ b/libavformat/avisynth.c @@ -41,7 +41,7 @@ typedef struct { int next_stream; } AVISynthContext; -static int avisynth_read_header(AVFormatContext *s, AVFormatParameters *ap) +static int avisynth_read_header(AVFormatContext *s) { AVISynthContext *avs = s->priv_data; HRESULT res; diff --git a/libavformat/avs.c b/libavformat/avs.c index c6ccbb2cd22daacb4dd7fbfd20f9cff8e6aae0cd..32e7546d60c4c84f74b40dba0dae281e40810ac7 100644 --- a/libavformat/avs.c +++ b/libavformat/avs.c @@ -55,7 +55,7 @@ static int avs_probe(AVProbeData * p) return 0; } -static int avs_read_header(AVFormatContext * s, AVFormatParameters * ap) +static int avs_read_header(AVFormatContext * s) { AvsFormat *avs = s->priv_data; diff --git a/libavformat/bethsoftvid.c b/libavformat/bethsoftvid.c index 7705fcb5f644f4f0de49124037702897e20f10e2..2c8a980730dab81081fd826d9c9a11d8b1e70027 100644 --- a/libavformat/bethsoftvid.c +++ b/libavformat/bethsoftvid.c @@ -57,8 +57,7 @@ static int vid_probe(AVProbeData *p) return AVPROBE_SCORE_MAX; } -static int vid_read_header(AVFormatContext *s, - AVFormatParameters *ap) +static int vid_read_header(AVFormatContext *s) { BVID_DemuxContext *vid = s->priv_data; AVIOContext *pb = s->pb; diff --git a/libavformat/bfi.c b/libavformat/bfi.c index bb02e85581d88fa7432fb7f183468914382396d8..718e721356446960ae18a0bb6a42c5c0b9f7dc9d 100644 --- a/libavformat/bfi.c +++ b/libavformat/bfi.c @@ -47,7 +47,7 @@ static int bfi_probe(AVProbeData * p) return 0; } -static int bfi_read_header(AVFormatContext * s, AVFormatParameters * ap) +static int bfi_read_header(AVFormatContext * s) { BFIContext *bfi = s->priv_data; AVIOContext *pb = s->pb; diff --git a/libavformat/bink.c b/libavformat/bink.c index ecf6905843636a38d13e8a3de656c93f257f60ae..d6af54f96e892304de979bb2ea5f89342762ad95 100644 --- a/libavformat/bink.c +++ b/libavformat/bink.c @@ -68,7 +68,7 @@ static int probe(AVProbeData *p) return 0; } -static int read_header(AVFormatContext *s, AVFormatParameters *ap) +static int read_header(AVFormatContext *s) { BinkDemuxContext *bink = s->priv_data; AVIOContext *pb = s->pb; diff --git a/libavformat/bmv.c b/libavformat/bmv.c index 1077efa5738d6cbbfa9a2ba9bc3b454d9faa7c34..ebf59e9f235272720c3b480201c74b34cc8369ac 100644 --- a/libavformat/bmv.c +++ b/libavformat/bmv.c @@ -38,7 +38,7 @@ typedef struct BMVContext { int64_t audio_pos; } BMVContext; -static int bmv_read_header(AVFormatContext *s, AVFormatParameters *ap) +static int bmv_read_header(AVFormatContext *s) { AVStream *st, *ast; BMVContext *c = s->priv_data; diff --git a/libavformat/c93.c b/libavformat/c93.c index d82086d29647a5660c456f4f9023bfc378f93796..21058da727fd8330e31d1cfe521bb21b36380215 100644 --- a/libavformat/c93.c +++ b/libavformat/c93.c @@ -57,8 +57,7 @@ static int probe(AVProbeData *p) return AVPROBE_SCORE_MAX; } -static int read_header(AVFormatContext *s, - AVFormatParameters *ap) +static int read_header(AVFormatContext *s) { AVStream *video; AVIOContext *pb = s->pb; diff --git a/libavformat/cafdec.c b/libavformat/cafdec.c index 4efc40f1af8a9bea3d1872025f0ace1b90dfee37..abde78d56cc50c8405c62730a26cb4aaaa772381 100644 --- a/libavformat/cafdec.c +++ b/libavformat/cafdec.c @@ -194,8 +194,7 @@ static void read_info_chunk(AVFormatContext *s, int64_t size) } } -static int read_header(AVFormatContext *s, - AVFormatParameters *ap) +static int read_header(AVFormatContext *s) { AVIOContext *pb = s->pb; CaffContext *caf = s->priv_data; diff --git a/libavformat/cdg.c b/libavformat/cdg.c index 0980df7ebfe080f96e9885e51e803419aa89c359..c0adf3b917ee2861ea700fa8b9462fadb37f33e3 100644 --- a/libavformat/cdg.c +++ b/libavformat/cdg.c @@ -26,7 +26,7 @@ #define CDG_COMMAND 0x09 #define CDG_MASK 0x3F -static int read_header(AVFormatContext *s, AVFormatParameters *ap) +static int read_header(AVFormatContext *s) { AVStream *vst; int ret; diff --git a/libavformat/daud.c b/libavformat/daud.c index 9deca33bdef66f466e56721f57ab9c4f55bc5629..8de4aad119da07b7bf9fa868b78a3479c2b5d1c5 100644 --- a/libavformat/daud.c +++ b/libavformat/daud.c @@ -20,7 +20,7 @@ */ #include "avformat.h" -static int daud_header(AVFormatContext *s, AVFormatParameters *ap) { +static int daud_header(AVFormatContext *s) { AVStream *st = avformat_new_stream(s, NULL); if (!st) return AVERROR(ENOMEM); diff --git a/libavformat/dfa.c b/libavformat/dfa.c index ac49b6104b147c639a5bc4a74ea54035bb1019df..283a60716852b118cd1a0721da60d89c86e973f2 100644 --- a/libavformat/dfa.c +++ b/libavformat/dfa.c @@ -31,8 +31,7 @@ static int dfa_probe(AVProbeData *p) return AVPROBE_SCORE_MAX; } -static int dfa_read_header(AVFormatContext *s, - AVFormatParameters *ap) +static int dfa_read_header(AVFormatContext *s) { AVIOContext *pb = s->pb; AVStream *st; diff --git a/libavformat/dsicin.c b/libavformat/dsicin.c index 801ca6af223eb92f50e680bb5ad6f3075f0a0661..f8ba68d9624b2bbe1a21a420149a717cf22de405 100644 --- a/libavformat/dsicin.c +++ b/libavformat/dsicin.c @@ -91,7 +91,7 @@ static int cin_read_file_header(CinDemuxContext *cin, AVIOContext *pb) { return 0; } -static int cin_read_header(AVFormatContext *s, AVFormatParameters *ap) +static int cin_read_header(AVFormatContext *s) { int rc; CinDemuxContext *cin = s->priv_data; diff --git a/libavformat/dv.c b/libavformat/dv.c index 805f25271c540d651459fe5044987d8613621c54..4106dfdce376020f7e0e57b1d5ba162ce0994076 100644 --- a/libavformat/dv.c +++ b/libavformat/dv.c @@ -402,8 +402,7 @@ typedef struct RawDVContext { uint8_t buf[DV_MAX_FRAME_SIZE]; } RawDVContext; -static int dv_read_header(AVFormatContext *s, - AVFormatParameters *ap) +static int dv_read_header(AVFormatContext *s) { unsigned state, marker_pos = 0; RawDVContext *c = s->priv_data; diff --git a/libavformat/dxa.c b/libavformat/dxa.c index 0cc803d7bfc0e33bb44fb33ec0a71de9539e5331..13d206046579cd44ba9ede9dea752bd05200eaba 100644 --- a/libavformat/dxa.c +++ b/libavformat/dxa.c @@ -51,7 +51,7 @@ static int dxa_probe(AVProbeData *p) return 0; } -static int dxa_read_header(AVFormatContext *s, AVFormatParameters *ap) +static int dxa_read_header(AVFormatContext *s) { AVIOContext *pb = s->pb; DXAContext *c = s->priv_data; diff --git a/libavformat/eacdata.c b/libavformat/eacdata.c index 8fe144e6a9b325465ee239e628b218aa9b6803d4..ff9f1c8ef528581d04758ce6007ff98223b4baf5 100644 --- a/libavformat/eacdata.c +++ b/libavformat/eacdata.c @@ -45,7 +45,7 @@ static int cdata_probe(AVProbeData *p) return 0; } -static int cdata_read_header(AVFormatContext *s, AVFormatParameters *ap) +static int cdata_read_header(AVFormatContext *s) { CdataDemuxContext *cdata = s->priv_data; AVIOContext *pb = s->pb; diff --git a/libavformat/electronicarts.c b/libavformat/electronicarts.c index 01ba479fac6e79c71393a4de64ff75f266b0c967..a10e64592c8236b77dda68781e54b9a6adbecb24 100644 --- a/libavformat/electronicarts.c +++ b/libavformat/electronicarts.c @@ -400,8 +400,7 @@ static int ea_probe(AVProbeData *p) return AVPROBE_SCORE_MAX; } -static int ea_read_header(AVFormatContext *s, - AVFormatParameters *ap) +static int ea_read_header(AVFormatContext *s) { EaDemuxContext *ea = s->priv_data; AVStream *st; diff --git a/libavformat/ffmdec.c b/libavformat/ffmdec.c index 9cee3ad64fb334a35ab15d6e660fbe2598c181b1..259b6ead3fa743ab0a19a767313be0c076a80e87 100644 --- a/libavformat/ffmdec.c +++ b/libavformat/ffmdec.c @@ -259,7 +259,7 @@ static int ffm_close(AVFormatContext *s) } -static int ffm_read_header(AVFormatContext *s, AVFormatParameters *ap) +static int ffm_read_header(AVFormatContext *s) { FFMContext *ffm = s->priv_data; AVStream *st; diff --git a/libavformat/ffmetadec.c b/libavformat/ffmetadec.c index 21e5ee9da4193d7fe176a9ed42efede1d25839b7..9774e946b25f4ecb9fdaa570e15fd16fc1459282 100644 --- a/libavformat/ffmetadec.c +++ b/libavformat/ffmetadec.c @@ -123,7 +123,7 @@ static int read_tag(uint8_t *line, AVDictionary **m) return 0; } -static int read_header(AVFormatContext *s, AVFormatParameters *ap) +static int read_header(AVFormatContext *s) { AVDictionary **m = &s->metadata; uint8_t line[1024]; diff --git a/libavformat/filmstripdec.c b/libavformat/filmstripdec.c index 648fb4f384d6b675fe139c24784cca9c50c37612..8d7b3044720eaedb781ff23bfc2471648e7ec4b2 100644 --- a/libavformat/filmstripdec.c +++ b/libavformat/filmstripdec.c @@ -34,8 +34,7 @@ typedef struct { int leading; } FilmstripDemuxContext; -static int read_header(AVFormatContext *s, - AVFormatParameters *ap) +static int read_header(AVFormatContext *s) { FilmstripDemuxContext *film = s->priv_data; AVIOContext *pb = s->pb; diff --git a/libavformat/flacdec.c b/libavformat/flacdec.c index 9e083d116c5c90027ee79be15441f57ab5038f5c..d127dc209f0b47c25591e9853595d1c922c8fb74 100644 --- a/libavformat/flacdec.c +++ b/libavformat/flacdec.c @@ -27,8 +27,7 @@ #include "vorbiscomment.h" #include "libavcodec/bytestream.h" -static int flac_read_header(AVFormatContext *s, - AVFormatParameters *ap) +static int flac_read_header(AVFormatContext *s) { int ret, metadata_last=0, metadata_type, metadata_size, found_streaminfo=0; uint8_t header[4]; diff --git a/libavformat/flic.c b/libavformat/flic.c index 7edc46e2a7b2a2f37a0730c1c38b917a99ef2421..849ec6912da13c6d80f0cdf474153eede6974bea 100644 --- a/libavformat/flic.c +++ b/libavformat/flic.c @@ -83,8 +83,7 @@ static int flic_probe(AVProbeData *p) return AVPROBE_SCORE_MAX; } -static int flic_read_header(AVFormatContext *s, - AVFormatParameters *ap) +static int flic_read_header(AVFormatContext *s) { FlicDemuxContext *flic = s->priv_data; AVIOContext *pb = s->pb; diff --git a/libavformat/flvdec.c b/libavformat/flvdec.c index 2f770b30f24f8796e5583bfd29383c76ce83d353..9296ef9d314692c270c87fb633bd57c57bb22866 100644 --- a/libavformat/flvdec.c +++ b/libavformat/flvdec.c @@ -368,8 +368,7 @@ static AVStream *create_stream(AVFormatContext *s, int is_audio){ return st; } -static int flv_read_header(AVFormatContext *s, - AVFormatParameters *ap) +static int flv_read_header(AVFormatContext *s) { int offset, flags; diff --git a/libavformat/gsmdec.c b/libavformat/gsmdec.c index 443f820ad8ad0307d7f39f604cf417d09eb13a6e..5d6495860ae1060de1360975f9f9f061fb44b06c 100644 --- a/libavformat/gsmdec.c +++ b/libavformat/gsmdec.c @@ -54,7 +54,7 @@ static int gsm_read_packet(AVFormatContext *s, AVPacket *pkt) return 0; } -static int gsm_read_header(AVFormatContext *s, AVFormatParameters *ap) +static int gsm_read_header(AVFormatContext *s) { GSMDemuxerContext *c = s->priv_data; AVStream *st = avformat_new_stream(s, NULL); diff --git a/libavformat/gxf.c b/libavformat/gxf.c index ebc4eeafa529b56f1afa683aee7327d1fcd0d4e9..fcf6c9385810b09957dcc171b41c79897ab25060 100644 --- a/libavformat/gxf.c +++ b/libavformat/gxf.c @@ -259,7 +259,7 @@ static void gxf_read_index(AVFormatContext *s, int pkt_len) { avio_skip(pb, pkt_len); } -static int gxf_header(AVFormatContext *s, AVFormatParameters *ap) { +static int gxf_header(AVFormatContext *s) { AVIOContext *pb = s->pb; GXFPktType pkt_type; int map_len; diff --git a/libavformat/idcin.c b/libavformat/idcin.c index b26f2aaa8b68c6c41a49060ad4b80bf7193303fa..eb2cb8bf55f672a835202ca67a05350823de3e5c 100644 --- a/libavformat/idcin.c +++ b/libavformat/idcin.c @@ -138,8 +138,7 @@ static int idcin_probe(AVProbeData *p) return AVPROBE_SCORE_MAX / 2; } -static int idcin_read_header(AVFormatContext *s, - AVFormatParameters *ap) +static int idcin_read_header(AVFormatContext *s) { AVIOContext *pb = s->pb; IdcinDemuxContext *idcin = s->priv_data; diff --git a/libavformat/idroqdec.c b/libavformat/idroqdec.c index d63c395b791dc187b66ac755c9c567dfa59854b7..5c1528de0fc85d80c715b3815bb5256b2e67e19a 100644 --- a/libavformat/idroqdec.c +++ b/libavformat/idroqdec.c @@ -66,8 +66,7 @@ static int roq_probe(AVProbeData *p) return AVPROBE_SCORE_MAX; } -static int roq_read_header(AVFormatContext *s, - AVFormatParameters *ap) +static int roq_read_header(AVFormatContext *s) { RoqDemuxContext *roq = s->priv_data; AVIOContext *pb = s->pb; diff --git a/libavformat/iff.c b/libavformat/iff.c index b895cf2e678861d0db541a847a533717dd11ec7b..f5f39f06aa8771d9cf426c204a0844819be1a5c8 100644 --- a/libavformat/iff.c +++ b/libavformat/iff.c @@ -107,8 +107,7 @@ static int iff_probe(AVProbeData *p) return 0; } -static int iff_read_header(AVFormatContext *s, - AVFormatParameters *ap) +static int iff_read_header(AVFormatContext *s) { IffDemuxContext *iff = s->priv_data; AVIOContext *pb = s->pb; diff --git a/libavformat/img2.c b/libavformat/img2.c index e3e7d11e43d73acf8648de5b3440bad7a7ceaa78..7203cb62d99cf97605fa3bd76491cf9ada2d77cc 100644 --- a/libavformat/img2.c +++ b/libavformat/img2.c @@ -205,7 +205,7 @@ enum CodecID av_guess_image2_codec(const char *filename){ } #endif -static int read_header(AVFormatContext *s1, AVFormatParameters *ap) +static int read_header(AVFormatContext *s1) { VideoData *s = s1->priv_data; int first_index, last_index, ret = 0; diff --git a/libavformat/ipmovie.c b/libavformat/ipmovie.c index daa44b173f61fb7936bc23470dfcfe2f008eac67..152b40ec7ba35e9ec9a52975d671d3e406ad967a 100644 --- a/libavformat/ipmovie.c +++ b/libavformat/ipmovie.c @@ -535,8 +535,7 @@ static int ipmovie_probe(AVProbeData *p) return 0; } -static int ipmovie_read_header(AVFormatContext *s, - AVFormatParameters *ap) +static int ipmovie_read_header(AVFormatContext *s) { IPMVEContext *ipmovie = s->priv_data; AVIOContext *pb = s->pb; diff --git a/libavformat/iss.c b/libavformat/iss.c index ec6509c8b03338e672dc47531080a3a083912c48..c2ba1f0eb530668960e20f5a07a3d309f4da3795 100644 --- a/libavformat/iss.c +++ b/libavformat/iss.c @@ -65,7 +65,7 @@ static int iss_probe(AVProbeData *p) return AVPROBE_SCORE_MAX; } -static av_cold int iss_read_header(AVFormatContext *s, AVFormatParameters *ap) +static av_cold int iss_read_header(AVFormatContext *s) { IssDemuxContext *iss = s->priv_data; AVIOContext *pb = s->pb; diff --git a/libavformat/iv8.c b/libavformat/iv8.c index 4f25441e8cc74b04950525314fb3369b885910b3..903de6f8a4d483a0b73cea3e08319e44944cca03 100644 --- a/libavformat/iv8.c +++ b/libavformat/iv8.c @@ -37,7 +37,7 @@ static int probe(AVProbeData *p) return 0; } -static int read_header(AVFormatContext *s, AVFormatParameters *ap) +static int read_header(AVFormatContext *s) { AVStream *st; diff --git a/libavformat/ivfdec.c b/libavformat/ivfdec.c index 03f799556de999bb6f3efed43afe99f412820109..ae84a6fd816255b7d9b2b99216168126fc6345a8 100644 --- a/libavformat/ivfdec.c +++ b/libavformat/ivfdec.c @@ -32,7 +32,7 @@ static int probe(AVProbeData *p) return 0; } -static int read_header(AVFormatContext *s, AVFormatParameters *ap) +static int read_header(AVFormatContext *s) { AVStream *st; AVRational time_base; diff --git a/libavformat/jvdec.c b/libavformat/jvdec.c index c24b0c2b1ae50f30fcc1aaf34e8f5ceeceabf0e3..82d96ca0715453780f6c05e0ef3406e94baf4063 100644 --- a/libavformat/jvdec.c +++ b/libavformat/jvdec.c @@ -58,8 +58,7 @@ static int read_probe(AVProbeData *pd) return 0; } -static int read_header(AVFormatContext *s, - AVFormatParameters *ap) +static int read_header(AVFormatContext *s) { JVDemuxContext *jv = s->priv_data; AVIOContext *pb = s->pb; diff --git a/libavformat/libnut.c b/libavformat/libnut.c index 56e8bfc98d5a879fa13bffea77cae37e24403cdc..3bb355852e6f595b333f86e6502c6dfd8cc11ca8 100644 --- a/libavformat/libnut.c +++ b/libavformat/libnut.c @@ -186,7 +186,7 @@ static off_t av_seek(void * h, long long pos, int whence) { return avio_seek(bc, pos, whence); } -static int nut_read_header(AVFormatContext * avf, AVFormatParameters * ap) { +static int nut_read_header(AVFormatContext * avf) { NUTContext * priv = avf->priv_data; AVIOContext * bc = avf->pb; nut_demuxer_opts_tt dopts = { diff --git a/libavformat/lmlm4.c b/libavformat/lmlm4.c index 5f26c4becaae524eb97f9dec8d0857881b92fddf..8daf7b45c45b852a541c597dc39f0b15dbf4fced 100644 --- a/libavformat/lmlm4.c +++ b/libavformat/lmlm4.c @@ -58,7 +58,7 @@ static int lmlm4_probe(AVProbeData * pd) { return 0; } -static int lmlm4_read_header(AVFormatContext *s, AVFormatParameters *ap) { +static int lmlm4_read_header(AVFormatContext *s) { AVStream *st; if (!(st = avformat_new_stream(s, NULL))) diff --git a/libavformat/lxfdec.c b/libavformat/lxfdec.c index b3afa7e857b3a51b357d388fa9e82006690415b4..ee12dfbb98af93741aa56e2dbcc89f6de85f0559 100644 --- a/libavformat/lxfdec.c +++ b/libavformat/lxfdec.c @@ -196,7 +196,7 @@ static int get_packet_header(AVFormatContext *s, uint8_t *header, uint32_t *form return ret; } -static int lxf_read_header(AVFormatContext *s, AVFormatParameters *ap) +static int lxf_read_header(AVFormatContext *s) { LXFDemuxContext *lxf = s->priv_data; AVIOContext *pb = s->pb; diff --git a/libavformat/matroskadec.c b/libavformat/matroskadec.c index 5b919449f5adaecf3e51a53411a8658374ff628a..8f34289eb54f395cf1734cb931ba56fd20ca923b 100644 --- a/libavformat/matroskadec.c +++ b/libavformat/matroskadec.c @@ -1269,7 +1269,7 @@ static int matroska_aac_sri(int samplerate) return sri; } -static int matroska_read_header(AVFormatContext *s, AVFormatParameters *ap) +static int matroska_read_header(AVFormatContext *s) { MatroskaDemuxContext *matroska = s->priv_data; EbmlList *attachements_list = &matroska->attachments; diff --git a/libavformat/mm.c b/libavformat/mm.c index 341cf26a1cc259158f3fc9c4b400c6096805c6a1..d25c978ac41d12d31512e1ee6f42935af6aa1711 100644 --- a/libavformat/mm.c +++ b/libavformat/mm.c @@ -81,8 +81,7 @@ static int probe(AVProbeData *p) return AVPROBE_SCORE_MAX / 2; } -static int read_header(AVFormatContext *s, - AVFormatParameters *ap) +static int read_header(AVFormatContext *s) { MmDemuxContext *mm = s->priv_data; AVIOContext *pb = s->pb; diff --git a/libavformat/mmf.c b/libavformat/mmf.c index 8e4f2de7670c96066f2e560faf49e66e6422a67d..4d34cf2ac433f564dc25db25fd40e39b24d19a0d 100644 --- a/libavformat/mmf.c +++ b/libavformat/mmf.c @@ -180,8 +180,7 @@ static int mmf_probe(AVProbeData *p) } /* mmf input */ -static int mmf_read_header(AVFormatContext *s, - AVFormatParameters *ap) +static int mmf_read_header(AVFormatContext *s) { MMFContext *mmf = s->priv_data; unsigned int tag; diff --git a/libavformat/mov.c b/libavformat/mov.c index 9fb4a21c8c39d1435c6babb70352d5e87ac785c8..b7d8a5593347b921f2f9316f1d420eb4eb062756 100644 --- a/libavformat/mov.c +++ b/libavformat/mov.c @@ -2551,7 +2551,7 @@ finish: avio_seek(sc->pb, cur_pos, SEEK_SET); } -static int mov_read_header(AVFormatContext *s, AVFormatParameters *ap) +static int mov_read_header(AVFormatContext *s) { MOVContext *mov = s->priv_data; AVIOContext *pb = s->pb; diff --git a/libavformat/mp3dec.c b/libavformat/mp3dec.c index 185d7b8676108b81d87e224f0ced14f17db6ffc1..11f57ce1a9f1a52e04d38dfcb1fb6df6f08685bb 100644 --- a/libavformat/mp3dec.c +++ b/libavformat/mp3dec.c @@ -132,8 +132,7 @@ static int mp3_parse_vbr_tags(AVFormatContext *s, AVStream *st, int64_t base) return 0; } -static int mp3_read_header(AVFormatContext *s, - AVFormatParameters *ap) +static int mp3_read_header(AVFormatContext *s) { AVStream *st; int64_t off; diff --git a/libavformat/mpc.c b/libavformat/mpc.c index 943121e5fde311eb3e31b05f7556f05f22fd1bd4..86e6f8e5b8c5e0a6e3226c71579c6cc445a01de1 100644 --- a/libavformat/mpc.c +++ b/libavformat/mpc.c @@ -52,7 +52,7 @@ static int mpc_probe(AVProbeData *p) return 0; } -static int mpc_read_header(AVFormatContext *s, AVFormatParameters *ap) +static int mpc_read_header(AVFormatContext *s) { MPCContext *c = s->priv_data; AVStream *st; diff --git a/libavformat/mpc8.c b/libavformat/mpc8.c index d9560496f760dd56758545015c9ef28a9d098b28..3c51ccd037bdeedb3584f14fe2f37e15f51f7c99 100644 --- a/libavformat/mpc8.c +++ b/libavformat/mpc8.c @@ -188,7 +188,7 @@ static void mpc8_handle_chunk(AVFormatContext *s, int tag, int64_t chunk_pos, in } } -static int mpc8_read_header(AVFormatContext *s, AVFormatParameters *ap) +static int mpc8_read_header(AVFormatContext *s) { MPCContext *c = s->priv_data; AVIOContext *pb = s->pb; diff --git a/libavformat/mpeg.c b/libavformat/mpeg.c index f740a25f89f96cd527ba74165793624a2864a9bf..6a26d6d292a267016e82f04b8dda73d602c07b24 100644 --- a/libavformat/mpeg.c +++ b/libavformat/mpeg.c @@ -104,8 +104,7 @@ typedef struct MpegDemuxContext { int sofdec; } MpegDemuxContext; -static int mpegps_read_header(AVFormatContext *s, - AVFormatParameters *ap) +static int mpegps_read_header(AVFormatContext *s) { MpegDemuxContext *m = s->priv_data; const char *sofdec = "Sofdec"; diff --git a/libavformat/mpegts.c b/libavformat/mpegts.c index 15688a9747375eaad61aa77761dc1df8a460fe84..b105d8c108be5d12000f15cca960718b08fe25cd 100644 --- a/libavformat/mpegts.c +++ b/libavformat/mpegts.c @@ -1870,8 +1870,7 @@ static int parse_pcr(int64_t *ppcr_high, int *ppcr_low, return 0; } -static int mpegts_read_header(AVFormatContext *s, - AVFormatParameters *ap) +static int mpegts_read_header(AVFormatContext *s) { MpegTSContext *ts = s->priv_data; AVIOContext *pb = s->pb; diff --git a/libavformat/msnwc_tcp.c b/libavformat/msnwc_tcp.c index 7e76c07ca69169b0742ce53d1251614890957b39..9c0c3c79f4d9cd09d38d4fb2c9603d9c915369ae 100644 --- a/libavformat/msnwc_tcp.c +++ b/libavformat/msnwc_tcp.c @@ -70,7 +70,7 @@ static int msnwc_tcp_probe(AVProbeData *p) return -1; } -static int msnwc_tcp_read_header(AVFormatContext *ctx, AVFormatParameters *ap) +static int msnwc_tcp_read_header(AVFormatContext *ctx) { AVIOContext *pb = ctx->pb; AVCodecContext *codec; diff --git a/libavformat/mtv.c b/libavformat/mtv.c index 224373381211af7a359610d37ddcf54369ad7343..2af9c2dd5669658fa994b04ba3891a5d6b187571 100644 --- a/libavformat/mtv.c +++ b/libavformat/mtv.c @@ -75,7 +75,7 @@ static int mtv_probe(AVProbeData *p) return AVPROBE_SCORE_MAX; } -static int mtv_read_header(AVFormatContext *s, AVFormatParameters *ap) +static int mtv_read_header(AVFormatContext *s) { MTVDemuxContext *mtv = s->priv_data; AVIOContext *pb = s->pb; diff --git a/libavformat/mvi.c b/libavformat/mvi.c index 4782aad47971958ab42102aff0e5d7567b8e1eae..6e937b2acda18edfe479f32bbeba3fa78009ccb1 100644 --- a/libavformat/mvi.c +++ b/libavformat/mvi.c @@ -36,7 +36,7 @@ typedef struct MviDemuxContext { int video_frame_size; } MviDemuxContext; -static int read_header(AVFormatContext *s, AVFormatParameters *ap) +static int read_header(AVFormatContext *s) { MviDemuxContext *mvi = s->priv_data; AVIOContext *pb = s->pb; diff --git a/libavformat/mxfdec.c b/libavformat/mxfdec.c index bbe862ff6aa0ef2dd8dd14138ce01b3f496e1057..96b662f4313f6c6352a343dbd76565d9f1acd923 100644 --- a/libavformat/mxfdec.c +++ b/libavformat/mxfdec.c @@ -1648,7 +1648,7 @@ static inline void compute_partition_essence_offset(AVFormatContext *s, } } -static int mxf_read_header(AVFormatContext *s, AVFormatParameters *ap) +static int mxf_read_header(AVFormatContext *s) { MXFContext *mxf = s->priv_data; KLVPacket klv; diff --git a/libavformat/mxg.c b/libavformat/mxg.c index a74036436f7ff9be6f6a26bc024b139daf12e714..3f8c3e339e49b8f3aac753d194e878568bcedee7 100644 --- a/libavformat/mxg.c +++ b/libavformat/mxg.c @@ -37,7 +37,7 @@ typedef struct MXGContext { unsigned int cache_size; } MXGContext; -static int mxg_read_header(AVFormatContext *s, AVFormatParameters *ap) +static int mxg_read_header(AVFormatContext *s) { AVStream *video_st, *audio_st; MXGContext *mxg = s->priv_data; diff --git a/libavformat/ncdec.c b/libavformat/ncdec.c index ab1d302a8210273a8fc45e932b0ab9a8ffadd388..44e227ad8f7c681117854075fb8f93ba5b69c852 100644 --- a/libavformat/ncdec.c +++ b/libavformat/ncdec.c @@ -44,7 +44,7 @@ static int nc_probe(AVProbeData *probe_packet) return 0; } -static int nc_read_header(AVFormatContext *s, AVFormatParameters *ap) +static int nc_read_header(AVFormatContext *s) { AVStream *st = avformat_new_stream(s, NULL); diff --git a/libavformat/nsvdec.c b/libavformat/nsvdec.c index 18dfde2867ee42f140192039b029d63fcaffab78..b5bc87aa8c873f9105a019e86856e7630f91924c 100644 --- a/libavformat/nsvdec.c +++ b/libavformat/nsvdec.c @@ -269,7 +269,7 @@ static int nsv_resync(AVFormatContext *s) return -1; } -static int nsv_parse_NSVf_header(AVFormatContext *s, AVFormatParameters *ap) +static int nsv_parse_NSVf_header(AVFormatContext *s) { NSVContext *nsv = s->priv_data; AVIOContext *pb = s->pb; @@ -391,7 +391,7 @@ static int nsv_parse_NSVf_header(AVFormatContext *s, AVFormatParameters *ap) return 0; } -static int nsv_parse_NSVs_header(AVFormatContext *s, AVFormatParameters *ap) +static int nsv_parse_NSVs_header(AVFormatContext *s) { NSVContext *nsv = s->priv_data; AVIOContext *pb = s->pb; @@ -512,7 +512,7 @@ fail: return -1; } -static int nsv_read_header(AVFormatContext *s, AVFormatParameters *ap) +static int nsv_read_header(AVFormatContext *s) { NSVContext *nsv = s->priv_data; int i, err; @@ -527,10 +527,10 @@ static int nsv_read_header(AVFormatContext *s, AVFormatParameters *ap) if (nsv_resync(s) < 0) return -1; if (nsv->state == NSV_FOUND_NSVF) - err = nsv_parse_NSVf_header(s, ap); + err = nsv_parse_NSVf_header(s); /* we need the first NSVs also... */ if (nsv->state == NSV_FOUND_NSVS) { - err = nsv_parse_NSVs_header(s, ap); + err = nsv_parse_NSVs_header(s); break; /* we just want the first one */ } } @@ -571,7 +571,7 @@ null_chunk_retry: if (err < 0) return err; if (nsv->state == NSV_FOUND_NSVS) - err = nsv_parse_NSVs_header(s, NULL); + err = nsv_parse_NSVs_header(s); if (err < 0) return err; if (nsv->state != NSV_HAS_READ_NSVS && nsv->state != NSV_FOUND_BEEF) diff --git a/libavformat/nutdec.c b/libavformat/nutdec.c index 9cec89e62211947ae46fa7416a2eb8145d40a24d..8d1b17ddc9178fa2e96560b0e2e2b129c02b6bbd 100644 --- a/libavformat/nutdec.c +++ b/libavformat/nutdec.c @@ -596,7 +596,7 @@ fail: return ret; } -static int nut_read_header(AVFormatContext *s, AVFormatParameters *ap) +static int nut_read_header(AVFormatContext *s) { NUTContext *nut = s->priv_data; AVIOContext *bc = s->pb; diff --git a/libavformat/nuv.c b/libavformat/nuv.c index 262c4c58e95d8035a5d8e4b2d0f90326e2e66989..86be778e4c06bd404fa840df26ccb3b73c103244 100644 --- a/libavformat/nuv.c +++ b/libavformat/nuv.c @@ -122,7 +122,7 @@ static int get_codec_data(AVIOContext *pb, AVStream *vst, return 0; } -static int nuv_header(AVFormatContext *s, AVFormatParameters *ap) { +static int nuv_header(AVFormatContext *s) { NUVContext *ctx = s->priv_data; AVIOContext *pb = s->pb; char id_string[12]; diff --git a/libavformat/oggdec.c b/libavformat/oggdec.c index 36e2c452da4672899992b7d915cfa74c86bab88e..79aa98f83d3a9c5eed749e7c2ad090e4abf8a3a1 100644 --- a/libavformat/oggdec.c +++ b/libavformat/oggdec.c @@ -494,7 +494,7 @@ static int ogg_get_length(AVFormatContext *s) return 0; } -static int ogg_read_header(AVFormatContext *s, AVFormatParameters *ap) +static int ogg_read_header(AVFormatContext *s) { struct ogg *ogg = s->priv_data; int ret, i; diff --git a/libavformat/omadec.c b/libavformat/omadec.c index 0beed7165d17255c2632aa9ee9404d9b9b9a6fd7..3bff790a56721e284ebb0cb97f6a909cf382ada6 100644 --- a/libavformat/omadec.c +++ b/libavformat/omadec.c @@ -256,8 +256,7 @@ static int decrypt_init(AVFormatContext *s, ID3v2ExtraMeta *em, uint8_t *header) return 0; } -static int oma_read_header(AVFormatContext *s, - AVFormatParameters *ap) +static int oma_read_header(AVFormatContext *s) { int ret, framesize, jsflag, samplerate; uint32_t codec_params; diff --git a/libavformat/pmpdec.c b/libavformat/pmpdec.c index 96c704857066915bf4adb7da59bfb7fa3583e6fa..9df39be0a19cd911e20ba1fdd3f5670ee2c563f2 100644 --- a/libavformat/pmpdec.c +++ b/libavformat/pmpdec.c @@ -39,7 +39,7 @@ static int pmp_probe(AVProbeData *p) return 0; } -static int pmp_header(AVFormatContext *s, AVFormatParameters *ap) +static int pmp_header(AVFormatContext *s) { PMPContext *pmp = s->priv_data; AVIOContext *pb = s->pb; diff --git a/libavformat/psxstr.c b/libavformat/psxstr.c index d22de0887f921cfd014c52145bb3c9a5cf3af2af..988d1f095e3a0c09b8f364ce1c14f741a479b61d 100644 --- a/libavformat/psxstr.c +++ b/libavformat/psxstr.c @@ -96,8 +96,7 @@ static int str_probe(AVProbeData *p) return 50; } -static int str_read_header(AVFormatContext *s, - AVFormatParameters *ap) +static int str_read_header(AVFormatContext *s) { AVIOContext *pb = s->pb; StrDemuxContext *str = s->priv_data; diff --git a/libavformat/pva.c b/libavformat/pva.c index 263fb5fdc1262510a66b1648e8b3d9bc0933df79..21373a53672197157a62afde1ef97282114758f3 100644 --- a/libavformat/pva.c +++ b/libavformat/pva.c @@ -41,7 +41,7 @@ static int pva_probe(AVProbeData * pd) { return 0; } -static int pva_read_header(AVFormatContext *s, AVFormatParameters *ap) { +static int pva_read_header(AVFormatContext *s) { AVStream *st; if (!(st = avformat_new_stream(s, NULL))) diff --git a/libavformat/qcp.c b/libavformat/qcp.c index 191e9dd85b8461ab2e4c59f035ac57105c842a71..6545a1cdfdc2ef0ffaeeb182dc10ddb5e391a815 100644 --- a/libavformat/qcp.c +++ b/libavformat/qcp.c @@ -80,7 +80,7 @@ static int qcp_probe(AVProbeData *pd) return 0; } -static int qcp_read_header(AVFormatContext *s, AVFormatParameters *ap) +static int qcp_read_header(AVFormatContext *s) { AVIOContext *pb = s->pb; QCPContext *c = s->priv_data; diff --git a/libavformat/r3d.c b/libavformat/r3d.c index 73e73986ffb2c2f8704ec89d858bdabdc4732d50..7f0e8de0e462bdb1497798d579cb822587fbd372 100644 --- a/libavformat/r3d.c +++ b/libavformat/r3d.c @@ -159,7 +159,7 @@ static void r3d_read_reos(AVFormatContext *s) avio_skip(s->pb, 6*4); } -static int r3d_read_header(AVFormatContext *s, AVFormatParameters *ap) +static int r3d_read_header(AVFormatContext *s) { R3DContext *r3d = s->priv_data; Atom atom; diff --git a/libavformat/rawdec.c b/libavformat/rawdec.c index 3e2dd059404e5e4bf9c0248db0dd8e8846523185..9400a0bd327031223e5d2db549642be282ffdd1f 100644 --- a/libavformat/rawdec.c +++ b/libavformat/rawdec.c @@ -29,7 +29,7 @@ #include "libavutil/pixdesc.h" /* raw input */ -int ff_raw_read_header(AVFormatContext *s, AVFormatParameters *ap) +int ff_raw_read_header(AVFormatContext *s) { AVStream *st; enum CodecID id; @@ -120,8 +120,7 @@ int ff_raw_read_partial_packet(AVFormatContext *s, AVPacket *pkt) return ret; } -int ff_raw_audio_read_header(AVFormatContext *s, - AVFormatParameters *ap) +int ff_raw_audio_read_header(AVFormatContext *s) { AVStream *st = avformat_new_stream(s, NULL); if (!st) @@ -136,8 +135,7 @@ int ff_raw_audio_read_header(AVFormatContext *s, } /* MPEG-1/H.263 input */ -int ff_raw_video_read_header(AVFormatContext *s, - AVFormatParameters *ap) +int ff_raw_video_read_header(AVFormatContext *s) { AVStream *st; FFRawVideoDemuxerContext *s1 = s->priv_data; diff --git a/libavformat/rawdec.h b/libavformat/rawdec.h index 136f6c2d489318de0a7b5b32d156aba1eb733fc6..cfb1689cd9701e6870d13c72272a6e850c995730 100644 --- a/libavformat/rawdec.h +++ b/libavformat/rawdec.h @@ -41,13 +41,13 @@ typedef struct FFRawVideoDemuxerContext { extern const AVOption ff_rawvideo_options[]; -int ff_raw_read_header(AVFormatContext *s, AVFormatParameters *ap); +int ff_raw_read_header(AVFormatContext *s); int ff_raw_read_partial_packet(AVFormatContext *s, AVPacket *pkt); -int ff_raw_audio_read_header(AVFormatContext *s, AVFormatParameters *ap); +int ff_raw_audio_read_header(AVFormatContext *s); -int ff_raw_video_read_header(AVFormatContext *s, AVFormatParameters *ap); +int ff_raw_video_read_header(AVFormatContext *s); #define FF_RAWVIDEO_DEMUXER_CLASS(name)\ static const AVClass name ## _demuxer_class = {\ diff --git a/libavformat/rl2.c b/libavformat/rl2.c index b2be7c0ca9b3ae228f7810c9907dddc7e54f8ebe..8ec76ff9212b5305c404e5e8d14d45c89f2adec7 100644 --- a/libavformat/rl2.c +++ b/libavformat/rl2.c @@ -72,8 +72,7 @@ static int rl2_probe(AVProbeData *p) * @param ap format parameters * @return 0 on success, AVERROR otherwise */ -static av_cold int rl2_read_header(AVFormatContext *s, - AVFormatParameters *ap) +static av_cold int rl2_read_header(AVFormatContext *s) { AVIOContext *pb = s->pb; AVStream *st; diff --git a/libavformat/rmdec.c b/libavformat/rmdec.c index 75e4833c4c5cef25f05bb479eaf29bebd219d5f6..ee8abdd80037a3b39e03a164d225245ad6cd5f6d 100644 --- a/libavformat/rmdec.c +++ b/libavformat/rmdec.c @@ -403,7 +403,7 @@ static int rm_read_header_old(AVFormatContext *s) return rm_read_audio_stream_info(s, s->pb, st, st->priv_data, 1); } -static int rm_read_header(AVFormatContext *s, AVFormatParameters *ap) +static int rm_read_header(AVFormatContext *s) { RMDemuxContext *rm = s->priv_data; AVStream *st; diff --git a/libavformat/rpl.c b/libavformat/rpl.c index 0fa00f3f52a425339003a95e7b2316d373b1798e..3454fbe49140e89c2741addb45661770aeabde2c 100644 --- a/libavformat/rpl.c +++ b/libavformat/rpl.c @@ -110,7 +110,7 @@ static AVRational read_fps(const char* line, int* error) return result; } -static int rpl_read_header(AVFormatContext *s, AVFormatParameters *ap) +static int rpl_read_header(AVFormatContext *s) { AVIOContext *pb = s->pb; RPLContext *rpl = s->priv_data; diff --git a/libavformat/rsodec.c b/libavformat/rsodec.c index 54a3faa076137cf5d112d2f0e909c7a55aaa6caa..c148b2ee57c2c0a21fd1d127d9f64f69347a46c1 100644 --- a/libavformat/rsodec.c +++ b/libavformat/rsodec.c @@ -27,7 +27,7 @@ #include "riff.h" #include "rso.h" -static int rso_read_header(AVFormatContext *s, AVFormatParameters *ap) +static int rso_read_header(AVFormatContext *s) { AVIOContext *pb = s->pb; int id, rate, bps; diff --git a/libavformat/rtsp.c b/libavformat/rtsp.c index 487e910c17688f4f9453e1be68d8c5158600c787..0c42829d39a5033640ed031c55ce778ae939ec9e 100644 --- a/libavformat/rtsp.c +++ b/libavformat/rtsp.c @@ -1849,7 +1849,7 @@ static int sdp_probe(AVProbeData *p1) return 0; } -static int sdp_read_header(AVFormatContext *s, AVFormatParameters *ap) +static int sdp_read_header(AVFormatContext *s) { RTSPState *rt = s->priv_data; RTSPStream *rtsp_st; @@ -1935,8 +1935,7 @@ static int rtp_probe(AVProbeData *p) return 0; } -static int rtp_read_header(AVFormatContext *s, - AVFormatParameters *ap) +static int rtp_read_header(AVFormatContext *s) { uint8_t recvbuf[1500]; char host[500], sdp[500]; @@ -2013,7 +2012,7 @@ static int rtp_read_header(AVFormatContext *s, rt->media_type_mask = (1 << (AVMEDIA_TYPE_DATA+1)) - 1; - ret = sdp_read_header(s, ap); + ret = sdp_read_header(s); s->pb = NULL; return ret; diff --git a/libavformat/rtspdec.c b/libavformat/rtspdec.c index 1b4982f2122484d3a1d567f74ce7bb9f4bd6c13b..785d162b413dc45168742d821a0d16ff7fd1ab65 100644 --- a/libavformat/rtspdec.c +++ b/libavformat/rtspdec.c @@ -150,8 +150,7 @@ static int rtsp_probe(AVProbeData *p) return 0; } -static int rtsp_read_header(AVFormatContext *s, - AVFormatParameters *ap) +static int rtsp_read_header(AVFormatContext *s) { RTSPState *rt = s->priv_data; int ret; diff --git a/libavformat/sapdec.c b/libavformat/sapdec.c index 531cfd204dad4869a409224b4c2c79f96cbfc878..aa176c73ee0f771d5b97b093a77e39fcbb5a1ae9 100644 --- a/libavformat/sapdec.c +++ b/libavformat/sapdec.c @@ -60,8 +60,7 @@ static int sap_read_close(AVFormatContext *s) return 0; } -static int sap_read_header(AVFormatContext *s, - AVFormatParameters *ap) +static int sap_read_header(AVFormatContext *s) { struct SAPState *sap = s->priv_data; char host[1024], path[1024], url[1024]; diff --git a/libavformat/segafilm.c b/libavformat/segafilm.c index 5c346a75bb60a8613e988163bc73e245ededf626..83ba4f06adda545a259aa32dd408d5df20ce1d0e 100644 --- a/libavformat/segafilm.c +++ b/libavformat/segafilm.c @@ -75,8 +75,7 @@ static int film_probe(AVProbeData *p) return AVPROBE_SCORE_MAX; } -static int film_read_header(AVFormatContext *s, - AVFormatParameters *ap) +static int film_read_header(AVFormatContext *s) { FilmDemuxContext *film = s->priv_data; AVIOContext *pb = s->pb; diff --git a/libavformat/sierravmd.c b/libavformat/sierravmd.c index 81ff46fea0e953fad7fc518d9d22f394bf5c06ef..48b192e04cb12449238e4a805684dd22620ff608 100644 --- a/libavformat/sierravmd.c +++ b/libavformat/sierravmd.c @@ -78,8 +78,7 @@ static int vmd_probe(AVProbeData *p) return AVPROBE_SCORE_MAX / 2; } -static int vmd_read_header(AVFormatContext *s, - AVFormatParameters *ap) +static int vmd_read_header(AVFormatContext *s) { VmdDemuxContext *vmd = s->priv_data; AVIOContext *pb = s->pb; diff --git a/libavformat/siff.c b/libavformat/siff.c index 9f4d73374c79c8010257b013f1def035e49f6ccf..7e5b0b4d8cde0010b409e57426ccd8d57d627bb0 100644 --- a/libavformat/siff.c +++ b/libavformat/siff.c @@ -153,7 +153,7 @@ static int siff_parse_soun(AVFormatContext *s, SIFFContext *c, AVIOContext *pb) return create_audio_stream(s, c); } -static int siff_read_header(AVFormatContext *s, AVFormatParameters *ap) +static int siff_read_header(AVFormatContext *s) { AVIOContext *pb = s->pb; SIFFContext *c = s->priv_data; diff --git a/libavformat/smacker.c b/libavformat/smacker.c index 770f5364d30144b5ba17186efd980f2959fbe701..adc67e727e5d65e8185ac520cecd7122d1b118a7 100644 --- a/libavformat/smacker.c +++ b/libavformat/smacker.c @@ -98,7 +98,7 @@ static int smacker_probe(AVProbeData *p) return 0; } -static int smacker_read_header(AVFormatContext *s, AVFormatParameters *ap) +static int smacker_read_header(AVFormatContext *s) { AVIOContext *pb = s->pb; SmackerContext *smk = s->priv_data; diff --git a/libavformat/smjpegdec.c b/libavformat/smjpegdec.c index d7ff9799efeff69aaabe7b925f63d4967d66a73a..05a92839da717dbe7597db95f42462b54261956e 100644 --- a/libavformat/smjpegdec.c +++ b/libavformat/smjpegdec.c @@ -41,7 +41,7 @@ static int smjpeg_probe(AVProbeData *p) return 0; } -static int smjpeg_read_header(AVFormatContext *s, AVFormatParameters *ap) +static int smjpeg_read_header(AVFormatContext *s) { SMJPEGContext *sc = s->priv_data; AVStream *ast = NULL, *vst = NULL; diff --git a/libavformat/sol.c b/libavformat/sol.c index 31c84ceba06c4fe96e31d1560cda1e55ef1db231..4b3a5adbc08f8818839567aaacca2bbfd0bd474e 100644 --- a/libavformat/sol.c +++ b/libavformat/sol.c @@ -82,8 +82,7 @@ static int sol_channels(int magic, int type) return 2; } -static int sol_read_header(AVFormatContext *s, - AVFormatParameters *ap) +static int sol_read_header(AVFormatContext *s) { unsigned int magic,tag; AVIOContext *pb = s->pb; diff --git a/libavformat/soxdec.c b/libavformat/soxdec.c index 1074b3fb2a50589d32fa27723695a7170715e99a..29d13d4f7b9a73115418455dfe3fd8841bf13371 100644 --- a/libavformat/soxdec.c +++ b/libavformat/soxdec.c @@ -44,8 +44,7 @@ static int sox_probe(AVProbeData *p) return 0; } -static int sox_read_header(AVFormatContext *s, - AVFormatParameters *ap) +static int sox_read_header(AVFormatContext *s) { AVIOContext *pb = s->pb; unsigned header_size, comment_size; diff --git a/libavformat/spdifdec.c b/libavformat/spdifdec.c index 3daf23fb6914dad4bfee3a9fd460703b023bc0db..106dd8f479f285efac7d32e84d48867142c0cb88 100644 --- a/libavformat/spdifdec.c +++ b/libavformat/spdifdec.c @@ -155,7 +155,7 @@ static int spdif_probe(AVProbeData *p) return AVPROBE_SCORE_MAX / 8; } -static int spdif_read_header(AVFormatContext *s, AVFormatParameters *ap) +static int spdif_read_header(AVFormatContext *s) { s->ctx_flags |= AVFMTCTX_NOHEADER; return 0; diff --git a/libavformat/srtdec.c b/libavformat/srtdec.c index ca0a3049931fee963ce6721d005404bfdd0b75e9..d170f9f8564938a020e959ae9a6c826c4ba90eb3 100644 --- a/libavformat/srtdec.c +++ b/libavformat/srtdec.c @@ -40,7 +40,7 @@ static int srt_probe(AVProbeData *p) return 0; } -static int srt_read_header(AVFormatContext *s, AVFormatParameters *ap) +static int srt_read_header(AVFormatContext *s) { AVStream *st = avformat_new_stream(s, NULL); if (!st) diff --git a/libavformat/swfdec.c b/libavformat/swfdec.c index 1fc301b69623653e7ac408416c3dced3a8026a85..842cda3349c635ba6f20a2012b9b6a6adfabf0dd 100644 --- a/libavformat/swfdec.c +++ b/libavformat/swfdec.c @@ -52,7 +52,7 @@ static int swf_probe(AVProbeData *p) return 0; } -static int swf_read_header(AVFormatContext *s, AVFormatParameters *ap) +static int swf_read_header(AVFormatContext *s) { SWFContext *swf = s->priv_data; AVIOContext *pb = s->pb; diff --git a/libavformat/thp.c b/libavformat/thp.c index 25efcbba825ed388474c77f21780483cf81aca46..731f5af9686091de7a164ff3d71edc30e4e12603 100644 --- a/libavformat/thp.c +++ b/libavformat/thp.c @@ -54,8 +54,7 @@ static int thp_probe(AVProbeData *p) return 0; } -static int thp_read_header(AVFormatContext *s, - AVFormatParameters *ap) +static int thp_read_header(AVFormatContext *s) { ThpDemuxContext *thp = s->priv_data; AVStream *st; diff --git a/libavformat/tiertexseq.c b/libavformat/tiertexseq.c index 0590190312763aead3d8323a813be3b810d4d481..194c83abc109946ae5f23ada43306374a405d443 100644 --- a/libavformat/tiertexseq.c +++ b/libavformat/tiertexseq.c @@ -181,7 +181,7 @@ static int seq_parse_frame_data(SeqDemuxContext *seq, AVIOContext *pb) return 0; } -static int seq_read_header(AVFormatContext *s, AVFormatParameters *ap) +static int seq_read_header(AVFormatContext *s) { int i, rc; SeqDemuxContext *seq = s->priv_data; diff --git a/libavformat/tmv.c b/libavformat/tmv.c index 73b44bbc1dc8be92cc389763e4c70c1ddc0f73c2..0f8ab597ad4247516e82276ebda723001ba1ae01 100644 --- a/libavformat/tmv.c +++ b/libavformat/tmv.c @@ -63,7 +63,7 @@ static int tmv_probe(AVProbeData *p) return 0; } -static int tmv_read_header(AVFormatContext *s, AVFormatParameters *ap) +static int tmv_read_header(AVFormatContext *s) { TMVContext *tmv = s->priv_data; AVIOContext *pb = s->pb; diff --git a/libavformat/tta.c b/libavformat/tta.c index 6bf097975a616afaaa8754bb8364dc7573131fb9..4d6bc0aff29c3898ac9d5ea3531468c66978ba41 100644 --- a/libavformat/tta.c +++ b/libavformat/tta.c @@ -38,7 +38,7 @@ static int tta_probe(AVProbeData *p) return 0; } -static int tta_read_header(AVFormatContext *s, AVFormatParameters *ap) +static int tta_read_header(AVFormatContext *s) { TTAContext *c = s->priv_data; AVStream *st; diff --git a/libavformat/tty.c b/libavformat/tty.c index 804190098749682f69249bc59434403f8c15fe55..84f99377da478ebdb3d225dbc53722b98b6be7e2 100644 --- a/libavformat/tty.c +++ b/libavformat/tty.c @@ -72,8 +72,7 @@ static int efi_read(AVFormatContext *avctx, uint64_t start_pos) return 0; } -static int read_header(AVFormatContext *avctx, - AVFormatParameters *ap) +static int read_header(AVFormatContext *avctx) { TtyDemuxContext *s = avctx->priv_data; int width = 0, height = 0, ret = 0; diff --git a/libavformat/txd.c b/libavformat/txd.c index a601ea0853741f73f3f98fe4a471aeb16341bee8..acf15554ffb19c1962ec4216244b4d981a494696 100644 --- a/libavformat/txd.c +++ b/libavformat/txd.c @@ -37,7 +37,7 @@ static int txd_probe(AVProbeData * pd) { return 0; } -static int txd_read_header(AVFormatContext *s, AVFormatParameters *ap) { +static int txd_read_header(AVFormatContext *s) { AVStream *st; st = avformat_new_stream(s, NULL); diff --git a/libavformat/utils.c b/libavformat/utils.c index 17eec072d0a22b1af5d02ce587825b3b0d7811b4..51774e0ff2810438d3047efc456eccc687fdcbd4 100644 --- a/libavformat/utils.c +++ b/libavformat/utils.c @@ -608,7 +608,6 @@ int avformat_open_input(AVFormatContext **ps, const char *filename, AVInputForma { AVFormatContext *s = *ps; int ret = 0; - AVFormatParameters ap = { { 0 } }; AVDictionary *tmp = NULL; if (!s && !(s = avformat_alloc_context())) @@ -655,7 +654,7 @@ int avformat_open_input(AVFormatContext **ps, const char *filename, AVInputForma ff_id3v2_read(s, ID3v2_DEFAULT_MAGIC); if (s->iformat->read_header) - if ((ret = s->iformat->read_header(s, &ap)) < 0) + if ((ret = s->iformat->read_header(s)) < 0) goto fail; if (s->pb && !s->data_offset) diff --git a/libavformat/vc1test.c b/libavformat/vc1test.c index 6789b9d283a5482b47f27fa090d6a0b978b9923a..3354ad4b8fe9e384d4464c2519c2f438a3cc6e97 100644 --- a/libavformat/vc1test.c +++ b/libavformat/vc1test.c @@ -42,8 +42,7 @@ static int vc1t_probe(AVProbeData *p) return AVPROBE_SCORE_MAX/2; } -static int vc1t_read_header(AVFormatContext *s, - AVFormatParameters *ap) +static int vc1t_read_header(AVFormatContext *s) { AVIOContext *pb = s->pb; AVStream *st; diff --git a/libavformat/vocdec.c b/libavformat/vocdec.c index 638c15ae4b1ee727b5954e50516a19df8b9e7ba3..6b3438f758c946bb0a2181599b179fef38b7acca 100644 --- a/libavformat/vocdec.c +++ b/libavformat/vocdec.c @@ -38,7 +38,7 @@ static int voc_probe(AVProbeData *p) return AVPROBE_SCORE_MAX; } -static int voc_read_header(AVFormatContext *s, AVFormatParameters *ap) +static int voc_read_header(AVFormatContext *s) { VocDecContext *voc = s->priv_data; AVIOContext *pb = s->pb; diff --git a/libavformat/vqf.c b/libavformat/vqf.c index 4f8f07c9193b9acf68436022f3c988531dabb1d7..08ffa734c1d6e210bfd2fcbb884291049ef2e384 100644 --- a/libavformat/vqf.c +++ b/libavformat/vqf.c @@ -86,7 +86,7 @@ static const AVMetadataConv vqf_metadata_conv[] = { { 0 }, }; -static int vqf_read_header(AVFormatContext *s, AVFormatParameters *ap) +static int vqf_read_header(AVFormatContext *s) { VqfContext *c = s->priv_data; AVStream *st = avformat_new_stream(s, NULL); diff --git a/libavformat/wav.c b/libavformat/wav.c index 47cb5f8040e142613a4456574494b967777cbaef..7b3a0f44f37cdfaa7f3fe399c4feda8fb84e19c8 100644 --- a/libavformat/wav.c +++ b/libavformat/wav.c @@ -379,8 +379,7 @@ static const AVMetadataConv wav_metadata_conv[] = { }; /* wav input */ -static int wav_read_header(AVFormatContext *s, - AVFormatParameters *ap) +static int wav_read_header(AVFormatContext *s) { int64_t size, av_uninit(data_size); int64_t sample_count=0; @@ -621,7 +620,7 @@ static int w64_probe(AVProbeData *p) return 0; } -static int w64_read_header(AVFormatContext *s, AVFormatParameters *ap) +static int w64_read_header(AVFormatContext *s) { int64_t size; AVIOContext *pb = s->pb; diff --git a/libavformat/wc3movie.c b/libavformat/wc3movie.c index af5470f6f2b3c915d8a8c53d0eda3cbec50351c2..05e25fc44dfc633a30c5a94caeb78530b44612c7 100644 --- a/libavformat/wc3movie.c +++ b/libavformat/wc3movie.c @@ -83,8 +83,7 @@ static int wc3_probe(AVProbeData *p) return AVPROBE_SCORE_MAX; } -static int wc3_read_header(AVFormatContext *s, - AVFormatParameters *ap) +static int wc3_read_header(AVFormatContext *s) { Wc3DemuxContext *wc3 = s->priv_data; AVIOContext *pb = s->pb; diff --git a/libavformat/westwood_aud.c b/libavformat/westwood_aud.c index f083a86baf37f59a3483ad10979d9ddc9ee93439..a7148eb08b716093e1fdb918a323232320bd0821 100644 --- a/libavformat/westwood_aud.c +++ b/libavformat/westwood_aud.c @@ -81,8 +81,7 @@ static int wsaud_probe(AVProbeData *p) return AVPROBE_SCORE_MAX / 2; } -static int wsaud_read_header(AVFormatContext *s, - AVFormatParameters *ap) +static int wsaud_read_header(AVFormatContext *s) { AVIOContext *pb = s->pb; AVStream *st; diff --git a/libavformat/westwood_vqa.c b/libavformat/westwood_vqa.c index c2aebe5e807bed478bf15d8680ed455109b96d54..c4e19a99810c1a238b34cd18d6ca49ca597ea8b2 100644 --- a/libavformat/westwood_vqa.c +++ b/libavformat/westwood_vqa.c @@ -73,8 +73,7 @@ static int wsvqa_probe(AVProbeData *p) return AVPROBE_SCORE_MAX; } -static int wsvqa_read_header(AVFormatContext *s, - AVFormatParameters *ap) +static int wsvqa_read_header(AVFormatContext *s) { WsVqaDemuxContext *wsvqa = s->priv_data; AVIOContext *pb = s->pb; diff --git a/libavformat/wtv.c b/libavformat/wtv.c index c6198680c74896b3ceced8aa818ce00465aed048..07549b2cc53fbfdaace1711a954535ba5349fb65 100644 --- a/libavformat/wtv.c +++ b/libavformat/wtv.c @@ -945,7 +945,7 @@ static const uint8_t timeline_table_0_entries_Events_le16[] = {'t'_'i'_'m'_'e'_'l'_'i'_'n'_'e'_'.'_'t'_'a'_'b'_'l'_'e'_'.'_'0'_'.'_'e'_'n'_'t'_'r'_'i'_'e'_'s'_'.'_'E'_'v'_'e'_'n'_'t'_'s', 0}; #undef _ -static int read_header(AVFormatContext *s, AVFormatParameters *ap) +static int read_header(AVFormatContext *s) { WtvContext *wtv = s->priv_data; int root_sector, root_size; diff --git a/libavformat/wv.c b/libavformat/wv.c index 5f7b3b442a2be8ea805361e5a97182fc38ddb39a..c39cc6843c484f019888a7677484c9e6c4cadf1f 100644 --- a/libavformat/wv.c +++ b/libavformat/wv.c @@ -203,8 +203,7 @@ static int wv_read_block_header(AVFormatContext *ctx, AVIOContext *pb, int appen return 0; } -static int wv_read_header(AVFormatContext *s, - AVFormatParameters *ap) +static int wv_read_header(AVFormatContext *s) { AVIOContext *pb = s->pb; WVContext *wc = s->priv_data; diff --git a/libavformat/xa.c b/libavformat/xa.c index 0a1ad59f2cfab5c4a023d1474d8f739c6c5dec5d..c5e5cf5864f5c3bbb3676eb2eac7eac158268400 100644 --- a/libavformat/xa.c +++ b/libavformat/xa.c @@ -63,8 +63,7 @@ static int xa_probe(AVProbeData *p) return AVPROBE_SCORE_MAX/2; } -static int xa_read_header(AVFormatContext *s, - AVFormatParameters *ap) +static int xa_read_header(AVFormatContext *s) { MaxisXADemuxContext *xa = s->priv_data; AVIOContext *pb = s->pb; diff --git a/libavformat/xmv.c b/libavformat/xmv.c index bc4b23917a7d5df269cd3dd35802d7a8b11a626c..6fa9a6a0a7fb37f74ca90ab7f652e6a0809cf3b9 100644 --- a/libavformat/xmv.c +++ b/libavformat/xmv.c @@ -126,8 +126,7 @@ static int xmv_probe(AVProbeData *p) return 0; } -static int xmv_read_header(AVFormatContext *s, - AVFormatParameters *ap) +static int xmv_read_header(AVFormatContext *s) { XMVDemuxContext *xmv = s->priv_data; AVIOContext *pb = s->pb; diff --git a/libavformat/xwma.c b/libavformat/xwma.c index 5839bdcd2226c861476671fc15f4170f8560c723..2c6ee114bd8f383518077079c54e49fecd7a7563 100644 --- a/libavformat/xwma.c +++ b/libavformat/xwma.c @@ -40,7 +40,7 @@ static int xwma_probe(AVProbeData *p) return 0; } -static int xwma_read_header(AVFormatContext *s, AVFormatParameters *ap) +static int xwma_read_header(AVFormatContext *s) { int64_t size, av_uninit(data_size); int ret; diff --git a/libavformat/yop.c b/libavformat/yop.c index e5ace8b8052d425b80e4c98c0921485d6fd04b45..e50025970d8b54d21ae5a8ebeaeae3276cf7e5e4 100644 --- a/libavformat/yop.c +++ b/libavformat/yop.c @@ -47,7 +47,7 @@ static int yop_probe(AVProbeData *probe_packet) return 0; } -static int yop_read_header(AVFormatContext *s, AVFormatParameters *ap) +static int yop_read_header(AVFormatContext *s) { YopDecContext *yop = s->priv_data; AVIOContext *pb = s->pb; diff --git a/libavformat/yuv4mpeg.c b/libavformat/yuv4mpeg.c index 698ee6814d6eb7f27aebdc70e00bcbd13712c379..afb5bfaab2c20edabf92f784ee97f801302370d2 100644 --- a/libavformat/yuv4mpeg.c +++ b/libavformat/yuv4mpeg.c @@ -190,7 +190,7 @@ AVOutputFormat ff_yuv4mpegpipe_muxer = { #define MAX_YUV4_HEADER 80 #define MAX_FRAME_HEADER 80 -static int yuv4_read_header(AVFormatContext *s, AVFormatParameters *ap) +static int yuv4_read_header(AVFormatContext *s) { char header[MAX_YUV4_HEADER + 10]; // Include headroom for // the longest option