| Index: media/filters/ffmpeg_demuxer.cc
|
| diff --git a/media/filters/ffmpeg_demuxer.cc b/media/filters/ffmpeg_demuxer.cc
|
| index 0cb2ea44f9e17e30dfe662b0b505529d75985f2f..5dc5ce7a38ff6c3c3d08fa1d0bc769a59a870bf2 100644
|
| --- a/media/filters/ffmpeg_demuxer.cc
|
| +++ b/media/filters/ffmpeg_demuxer.cc
|
| @@ -465,7 +465,7 @@ void FFmpegDemuxer::InitializeTask(DataSource* data_source,
|
| // Open FFmpeg AVFormatContext.
|
| DCHECK(!format_context_);
|
| AVFormatContext* context = NULL;
|
| - int result = av_open_input_file(&context, key.c_str(), NULL, 0, NULL);
|
| + int result = avformat_open_input(&context, key.c_str(), NULL, NULL);
|
|
|
| // Remove ourself from protocol list.
|
| FFmpegGlue::GetInstance()->RemoveProtocol(this);
|
| @@ -479,7 +479,7 @@ void FFmpegDemuxer::InitializeTask(DataSource* data_source,
|
| format_context_ = context;
|
|
|
| // Fully initialize AVFormatContext by parsing the stream a little.
|
| - result = av_find_stream_info(format_context_);
|
| + result = avformat_find_stream_info(format_context_, NULL);
|
| if (result < 0) {
|
| callback.Run(DEMUXER_ERROR_COULD_NOT_PARSE);
|
| return;
|
|
|