lavf: add avformat_find_stream_info()

It supports passing options to codecs.
This commit is contained in:
Anton Khirnov
2011-07-10 17:07:05 +02:00
parent 0b950fe240
commit a67c061e0f
3 changed files with 41 additions and 6 deletions
+1 -1
View File
@@ -96,7 +96,7 @@ static int movie_init(AVFilterContext *ctx)
"Failed to avformat_open_input '%s'\n", movie->file_name);
return ret;
}
if ((ret = av_find_stream_info(movie->format_ctx)) < 0)
if ((ret = avformat_find_stream_info(movie->format_ctx, NULL)) < 0)
av_log(ctx, AV_LOG_WARNING, "Failed to find stream info\n");
// if seeking requested, we execute it