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

@@ -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;