ffmpeg roll for chromium source and windows binaries

Includes fix for XP Perf by reducing webm library size by 1.6 MB
BUG=48037,50507
TEST=XP Perf and layout tests should pass

Review URL: http://codereview.chromium.org/3030024

git-svn-id: svn://svn.chromium.org/chrome/trunk/src@54053 0039d316-1c4b-4281-b951-d872f2087c98
parent a53e0683
...@@ -2,7 +2,7 @@ vars = { ...@@ -2,7 +2,7 @@ vars = {
"webkit_trunk": "webkit_trunk":
"http://svn.webkit.org/repository/webkit/trunk", "http://svn.webkit.org/repository/webkit/trunk",
"webkit_revision": "64234", "webkit_revision": "64234",
"ffmpeg_revision": "49485", "ffmpeg_revision": "54040",
"skia_revision": "592", "skia_revision": "592",
"chromium_git": "http://src.chromium.org/git", "chromium_git": "http://src.chromium.org/git",
"swig_revision": "40423", "swig_revision": "40423",
......
// Copyright (c) 2009 The Chromium Authors. All rights reserved. // Copyright (c) 2010 The Chromium Authors. All rights reserved.
// Use of this source code is governed by a BSD-style license that can be // Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file. // found in the LICENSE file.
...@@ -33,7 +33,7 @@ MockFFmpeg::MockFFmpeg() ...@@ -33,7 +33,7 @@ MockFFmpeg::MockFFmpeg()
EXPECT_CALL(*this, AVCodecInit()) EXPECT_CALL(*this, AVCodecInit())
.Times(AtMost(1)) .Times(AtMost(1))
.WillOnce(Return()); .WillOnce(Return());
EXPECT_CALL(*this, AVRegisterProtocol(_)) EXPECT_CALL(*this, AVRegisterProtocol2(_,_))
.Times(AtMost(1)) .Times(AtMost(1))
.WillOnce(DoAll(SaveArg<0>(&protocol_), Return(0))); .WillOnce(DoAll(SaveArg<0>(&protocol_), Return(0)));
EXPECT_CALL(*this, AVRegisterAll()) EXPECT_CALL(*this, AVRegisterAll())
...@@ -89,8 +89,8 @@ void avcodec_init() { ...@@ -89,8 +89,8 @@ void avcodec_init() {
media::MockFFmpeg::get()->AVCodecInit(); media::MockFFmpeg::get()->AVCodecInit();
} }
int av_register_protocol(URLProtocol* protocol) { int av_register_protocol2(URLProtocol* protocol, int size) {
return media::MockFFmpeg::get()->AVRegisterProtocol(protocol); return media::MockFFmpeg::get()->AVRegisterProtocol2(protocol, size);
} }
void av_register_all() { void av_register_all() {
......
...@@ -19,7 +19,7 @@ class MockFFmpeg { ...@@ -19,7 +19,7 @@ class MockFFmpeg {
// TODO(ajwong): Organize this class, and make sure that all mock entrypoints // TODO(ajwong): Organize this class, and make sure that all mock entrypoints
// are still used. // are still used.
MOCK_METHOD0(AVCodecInit, void()); MOCK_METHOD0(AVCodecInit, void());
MOCK_METHOD1(AVRegisterProtocol, int(URLProtocol* protocol)); MOCK_METHOD2(AVRegisterProtocol2, int(URLProtocol* protocol, int size));
MOCK_METHOD0(AVRegisterAll, void()); MOCK_METHOD0(AVRegisterAll, void());
MOCK_METHOD1(AVRegisterLockManager, int(int (*cb)(void**, enum AVLockOp))); MOCK_METHOD1(AVRegisterLockManager, int(int (*cb)(void**, enum AVLockOp)));
......
...@@ -18,6 +18,7 @@ extern "C" { ...@@ -18,6 +18,7 @@ extern "C" {
MSVC_PUSH_DISABLE_WARNING(4244); MSVC_PUSH_DISABLE_WARNING(4244);
#include <libavcodec/avcodec.h> #include <libavcodec/avcodec.h>
#include <libavformat/avformat.h> #include <libavformat/avformat.h>
#include <libavformat/avio.h>
#include <libavutil/avutil.h> #include <libavutil/avutil.h>
#include <libavutil/log.h> #include <libavutil/log.h>
MSVC_POP_WARNING(); MSVC_POP_WARNING();
......
...@@ -401,7 +401,7 @@ class FFmpegTest : public testing::TestWithParam<const char*> { ...@@ -401,7 +401,7 @@ class FFmpegTest : public testing::TestWithParam<const char*> {
avcodec_init(); avcodec_init();
av_log_set_level(AV_LOG_FATAL); av_log_set_level(AV_LOG_FATAL);
av_register_all(); av_register_all();
av_register_protocol(&kFFmpegFileProtocol); av_register_protocol2(&kFFmpegFileProtocol, sizeof(kFFmpegFileProtocol));
initialized = true; initialized = true;
} }
......
...@@ -134,7 +134,7 @@ FFmpegGlue::FFmpegGlue() { ...@@ -134,7 +134,7 @@ FFmpegGlue::FFmpegGlue() {
// Register our protocol glue code with FFmpeg. // Register our protocol glue code with FFmpeg.
avcodec_init(); avcodec_init();
av_register_protocol(&kFFmpegURLProtocol); av_register_protocol2(&kFFmpegURLProtocol, sizeof(kFFmpegURLProtocol));
av_lockmgr_register(&LockManagerOperation); av_lockmgr_register(&LockManagerOperation);
// Now register the rest of FFmpeg. // Now register the rest of FFmpeg.
......
...@@ -116,7 +116,7 @@ int main(int argc, const char** argv) { ...@@ -116,7 +116,7 @@ int main(int argc, const char** argv) {
avcodec_init(); avcodec_init();
av_log_set_level(verbose_level); av_log_set_level(verbose_level);
av_register_all(); av_register_all();
av_register_protocol(&kFFmpegFileProtocol); av_register_protocol2(&kFFmpegFileProtocol, sizeof(kFFmpegFileProtocol));
AVFormatContext* format_context = NULL; AVFormatContext* format_context = NULL;
// av_open_input_file wants a char*, which can't work with wide paths. // 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 // So we assume ASCII on Windows. On other platforms we can pass the
......
...@@ -224,7 +224,7 @@ int main(int argc, const char** argv) { ...@@ -224,7 +224,7 @@ int main(int argc, const char** argv) {
avcodec_init(); avcodec_init();
av_log_set_level(verbose_level); av_log_set_level(verbose_level);
av_register_all(); av_register_all();
av_register_protocol(&kFFmpegFileProtocol); av_register_protocol2(&kFFmpegFileProtocol, sizeof(kFFmpegFileProtocol));
AVFormatContext* format_context = NULL; AVFormatContext* format_context = NULL;
// av_open_input_file wants a char*, which can't work with wide paths. // 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 // So we assume ASCII on Windows. On other platforms we can pass the
......
...@@ -274,7 +274,7 @@ static bool InitFFmpeg() { ...@@ -274,7 +274,7 @@ static bool InitFFmpeg() {
return false; return false;
avcodec_init(); avcodec_init();
av_register_all(); av_register_all();
av_register_protocol(&kFFmpegFileProtocol); av_register_protocol2(&kFFmpegFileProtocol, sizeof(kFFmpegFileProtocol));
return true; return true;
} }
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment