diff options
author | Anton Khirnov <anton@khirnov.net> | 2011-06-18 13:40:48 +0200 |
---|---|---|
committer | Anton Khirnov <anton@khirnov.net> | 2011-07-10 17:09:28 +0200 |
commit | 71a861cf4010ab835fab383a250f27903eb61a34 (patch) | |
tree | 5af1c2668613d3cd606b9803f34ac68c22152228 /libavformat | |
parent | 18c007ba37b2c7dee5bd2f1a3eb3bfee9b6b3d26 (diff) | |
download | ffmpeg-streaming-71a861cf4010ab835fab383a250f27903eb61a34.zip ffmpeg-streaming-71a861cf4010ab835fab383a250f27903eb61a34.tar.gz |
lavc: make avcodec_alloc_context3 officially public.
Deprecate avcodec_alloc_context/2.
Diffstat (limited to 'libavformat')
-rw-r--r-- | libavformat/movenc.c | 2 | ||||
-rw-r--r-- | libavformat/movenchint.c | 2 | ||||
-rw-r--r-- | libavformat/utils.c | 2 |
3 files changed, 3 insertions, 3 deletions
diff --git a/libavformat/movenc.c b/libavformat/movenc.c index 0de7c4d..ae6f603 100644 --- a/libavformat/movenc.c +++ b/libavformat/movenc.c @@ -2102,7 +2102,7 @@ static void mov_create_chapter_track(AVFormatContext *s, int tracknum) track->mode = mov->mode; track->tag = MKTAG('t','e','x','t'); track->timescale = MOV_TIMESCALE; - track->enc = avcodec_alloc_context(); + track->enc = avcodec_alloc_context3(NULL); track->enc->codec_type = AVMEDIA_TYPE_SUBTITLE; for (i = 0; i < s->nb_chapters; i++) { diff --git a/libavformat/movenchint.c b/libavformat/movenchint.c index 6157146..683d58b 100644 --- a/libavformat/movenchint.c +++ b/libavformat/movenchint.c @@ -36,7 +36,7 @@ int ff_mov_init_hinting(AVFormatContext *s, int index, int src_index) track->tag = MKTAG('r','t','p',' '); track->src_track = src_index; - track->enc = avcodec_alloc_context(); + track->enc = avcodec_alloc_context3(NULL); if (!track->enc) goto fail; track->enc->codec_type = AVMEDIA_TYPE_DATA; diff --git a/libavformat/utils.c b/libavformat/utils.c index a3825a0..bbd1b2d 100644 --- a/libavformat/utils.c +++ b/libavformat/utils.c @@ -2668,7 +2668,7 @@ AVStream *av_new_stream(AVFormatContext *s, int id) return NULL; } - st->codec= avcodec_alloc_context(); + st->codec = avcodec_alloc_context3(NULL); if (s->iformat) { /* no default bitrate if decoding */ st->codec->bit_rate = 0; |