lavc: make avcodec_alloc_context3 officially public.

Deprecate avcodec_alloc_context/2.
This commit is contained in:
Anton Khirnov
2011-06-18 13:40:48 +02:00
parent 18c007ba37
commit 71a861cf40
11 changed files with 41 additions and 17 deletions

View File

@ -63,7 +63,7 @@ void init_opts(void)
{
int i;
for (i = 0; i < AVMEDIA_TYPE_NB; i++)
avcodec_opts[i] = avcodec_alloc_context2(i);
avcodec_opts[i] = avcodec_alloc_context3(NULL);
avformat_opts = avformat_alloc_context();
#if CONFIG_SWSCALE
sws_opts = sws_getContext(16, 16, 0, 16, 16, 0, SWS_BICUBIC, NULL, NULL, NULL);