Index: media/tools/media_bench/media_bench.cc |
diff --git a/media/tools/media_bench/media_bench.cc b/media/tools/media_bench/media_bench.cc |
index 939e35fb396203f7161523bdcc29395d8e13fdbb..cdc2560aef1d6076504a20e85f8515d63a5108ab 100644 |
--- a/media/tools/media_bench/media_bench.cc |
+++ b/media/tools/media_bench/media_bench.cc |
@@ -223,7 +223,7 @@ int main(int argc, const char** argv) { |
avcodec_init(); |
av_log_set_level(verbose_level); |
av_register_all(); |
- av_register_protocol2(&kFFmpegFileProtocol, sizeof(kFFmpegFileProtocol)); |
+ av_register_protocol(&kFFmpegFileProtocol); |
AVFormatContext* format_context = NULL; |
// av_open_input_file wants a char*, which can't work with wide paths. |
// So we assume ASCII on Windows. On other platforms we can pass the |