From 8e2fd8e1d424f3dda8b1966733a32c3842008896 Mon Sep 17 00:00:00 2001 From: Stefano Sabatini Date: Sun, 8 Feb 2009 08:27:26 +0000 Subject: [PATCH] Replace the calls to the deprecated av_alloc_format_context() with corresponding calls to avformat_alloc_context(). Originally committed as revision 17048 to svn://svn.ffmpeg.org/ffmpeg/trunk --- ffmpeg.c | 6 +++--- ffplay.c | 2 +- ffserver.c | 4 ++-- libavformat/mov.c | 2 +- libavformat/utils.c | 2 +- output_example.c | 2 +- tests/seek_test.c | 2 +- 7 files changed, 10 insertions(+), 10 deletions(-) diff --git a/ffmpeg.c b/ffmpeg.c index 42ac417ac8..db0eafd8f0 100644 --- a/ffmpeg.c +++ b/ffmpeg.c @@ -2778,7 +2778,7 @@ static void opt_input_file(const char *filename) !strcmp(filename, "/dev/stdin"); /* get default parameters from command line */ - ic = av_alloc_format_context(); + ic = avformat_alloc_context(); memset(ap, 0, sizeof(*ap)); ap->prealloced_context = 1; @@ -3267,7 +3267,7 @@ static void opt_output_file(const char *filename) if (!strcmp(filename, "-")) filename = "pipe:"; - oc = av_alloc_format_context(); + oc = avformat_alloc_context(); if (!file_oformat) { file_oformat = guess_format(NULL, filename, NULL); @@ -3900,7 +3900,7 @@ int main(int argc, char **argv) for(i=0; ioformat = guess_format("rtp", NULL, NULL); diff --git a/libavformat/mov.c b/libavformat/mov.c index a26ae43036..d4308fc008 100644 --- a/libavformat/mov.c +++ b/libavformat/mov.c @@ -1009,7 +1009,7 @@ static int mov_read_stsd(MOVContext *c, ByteIOContext *pb, MOVAtom atom) switch (st->codec->codec_id) { #if CONFIG_DV_DEMUXER case CODEC_ID_DVAUDIO: - c->dv_fctx = av_alloc_format_context(); + c->dv_fctx = avformat_alloc_context(); c->dv_demux = dv_init_demux(c->dv_fctx); if (!c->dv_demux) { av_log(c->fc, AV_LOG_ERROR, "dv demux context init error\n"); diff --git a/libavformat/utils.c b/libavformat/utils.c index 5859305370..4f098d9344 100644 --- a/libavformat/utils.c +++ b/libavformat/utils.c @@ -413,7 +413,7 @@ int av_open_input_stream(AVFormatContext **ic_ptr, } if(!ap->prealloced_context) - ic = av_alloc_format_context(); + ic = avformat_alloc_context(); else ic = *ic_ptr; if (!ic) { diff --git a/output_example.c b/output_example.c index bd9b7c3f6f..612146dad0 100644 --- a/output_example.c +++ b/output_example.c @@ -453,7 +453,7 @@ int main(int argc, char **argv) } /* allocate the output media context */ - oc = av_alloc_format_context(); + oc = avformat_alloc_context(); if (!oc) { fprintf(stderr, "Memory error\n"); exit(1); diff --git a/tests/seek_test.c b/tests/seek_test.c index 088bbc8302..b4e0e419e0 100644 --- a/tests/seek_test.c +++ b/tests/seek_test.c @@ -50,7 +50,7 @@ int main(int argc, char **argv) filename = argv[1]; /* allocate the media context */ - ic = av_alloc_format_context(); + ic = avformat_alloc_context(); if (!ic) { fprintf(stderr, "Memory error\n"); exit(1);