From 71a861cf4010ab835fab383a250f27903eb61a34 Mon Sep 17 00:00:00 2001 From: Anton Khirnov Date: Sat, 18 Jun 2011 13:40:48 +0200 Subject: lavc: make avcodec_alloc_context3 officially public. Deprecate avcodec_alloc_context/2. --- libavformat/movenc.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'libavformat/movenc.c') diff --git a/libavformat/movenc.c b/libavformat/movenc.c index 0de7c4d44d..ae6f603e86 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++) { -- cgit v1.2.3