Fix the other case of avformat_open_input too

This commit is contained in:
rdb 2013-01-02 20:51:16 +00:00
parent 557257f4b8
commit efe1285e88

View File

@ -181,7 +181,11 @@ open_subfile(const SubfileInfo &info) {
// Now we can open the stream.
int result =
#if LIBAVFORMAT_VERSION_INT >= AV_VERSION_INT(53, 2, 0)
avformat_open_input(&_format_context, url.c_str(), NULL, NULL);
#else
av_open_input_file(&_format_context, url.c_str(), NULL, 0, NULL);
#endif
if (result < 0) {
_format_context = NULL;
close();