lavc: introduce avcodec_open2() as a replacement for avcodec_open().

Adds support for decoder-private options and makes setting other options
simpler.
This commit is contained in:
Anton Khirnov
2011-05-22 14:10:49 +02:00
parent 7f7dc4fb55
commit 0b950fe240
7 changed files with 69 additions and 5 deletions
+1 -1
View File
@@ -139,7 +139,7 @@ static int movie_init(AVFilterContext *ctx)
return AVERROR(EINVAL);
}
if ((ret = avcodec_open(movie->codec_ctx, codec)) < 0) {
if ((ret = avcodec_open2(movie->codec_ctx, codec, NULL)) < 0) {
av_log(ctx, AV_LOG_ERROR, "Failed to open codec\n");
return ret;
}