summaryrefslogtreecommitdiffstats
path: root/media
diff options
context:
space:
mode:
authorfbarchard@chromium.org <fbarchard@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>2010-07-28 22:52:42 +0000
committerfbarchard@chromium.org <fbarchard@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>2010-07-28 22:52:42 +0000
commit5a671d2b25a1fcfb64101a09957edc4f802aa489 (patch)
tree217b50903305e893e16b8092c799378bc303c7f2 /media
parenta53e0683ad312c10f5772dadbfd5df33c45f03c1 (diff)
downloadchromium_src-5a671d2b25a1fcfb64101a09957edc4f802aa489.zip
chromium_src-5a671d2b25a1fcfb64101a09957edc4f802aa489.tar.gz
chromium_src-5a671d2b25a1fcfb64101a09957edc4f802aa489.tar.bz2
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
Diffstat (limited to 'media')
-rw-r--r--media/base/mock_ffmpeg.cc8
-rw-r--r--media/base/mock_ffmpeg.h2
-rw-r--r--media/ffmpeg/ffmpeg_common.h1
-rw-r--r--media/ffmpeg/ffmpeg_unittest.cc2
-rw-r--r--media/filters/ffmpeg_glue.cc2
-rw-r--r--media/test/ffmpeg_tests/ffmpeg_tests.cc2
-rw-r--r--media/tools/media_bench/media_bench.cc2
-rw-r--r--media/tools/omx_test/omx_test.cc2
8 files changed, 11 insertions, 10 deletions
diff --git a/media/base/mock_ffmpeg.cc b/media/base/mock_ffmpeg.cc
index 5f29a55..f3aa552 100644
--- a/media/base/mock_ffmpeg.cc
+++ b/media/base/mock_ffmpeg.cc
@@ -1,4 +1,4 @@
-// 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
// found in the LICENSE file.
@@ -33,7 +33,7 @@ MockFFmpeg::MockFFmpeg()
EXPECT_CALL(*this, AVCodecInit())
.Times(AtMost(1))
.WillOnce(Return());
- EXPECT_CALL(*this, AVRegisterProtocol(_))
+ EXPECT_CALL(*this, AVRegisterProtocol2(_,_))
.Times(AtMost(1))
.WillOnce(DoAll(SaveArg<0>(&protocol_), Return(0)));
EXPECT_CALL(*this, AVRegisterAll())
@@ -89,8 +89,8 @@ void avcodec_init() {
media::MockFFmpeg::get()->AVCodecInit();
}
-int av_register_protocol(URLProtocol* protocol) {
- return media::MockFFmpeg::get()->AVRegisterProtocol(protocol);
+int av_register_protocol2(URLProtocol* protocol, int size) {
+ return media::MockFFmpeg::get()->AVRegisterProtocol2(protocol, size);
}
void av_register_all() {
diff --git a/media/base/mock_ffmpeg.h b/media/base/mock_ffmpeg.h
index 836e02b..09daf03 100644
--- a/media/base/mock_ffmpeg.h
+++ b/media/base/mock_ffmpeg.h
@@ -19,7 +19,7 @@ class MockFFmpeg {
// TODO(ajwong): Organize this class, and make sure that all mock entrypoints
// are still used.
MOCK_METHOD0(AVCodecInit, void());
- MOCK_METHOD1(AVRegisterProtocol, int(URLProtocol* protocol));
+ MOCK_METHOD2(AVRegisterProtocol2, int(URLProtocol* protocol, int size));
MOCK_METHOD0(AVRegisterAll, void());
MOCK_METHOD1(AVRegisterLockManager, int(int (*cb)(void**, enum AVLockOp)));
diff --git a/media/ffmpeg/ffmpeg_common.h b/media/ffmpeg/ffmpeg_common.h
index 10f67d2..7b73781 100644
--- a/media/ffmpeg/ffmpeg_common.h
+++ b/media/ffmpeg/ffmpeg_common.h
@@ -18,6 +18,7 @@ extern "C" {
MSVC_PUSH_DISABLE_WARNING(4244);
#include <libavcodec/avcodec.h>
#include <libavformat/avformat.h>
+#include <libavformat/avio.h>
#include <libavutil/avutil.h>
#include <libavutil/log.h>
MSVC_POP_WARNING();
diff --git a/media/ffmpeg/ffmpeg_unittest.cc b/media/ffmpeg/ffmpeg_unittest.cc
index 0c2f45d..0892d9d 100644
--- a/media/ffmpeg/ffmpeg_unittest.cc
+++ b/media/ffmpeg/ffmpeg_unittest.cc
@@ -401,7 +401,7 @@ class FFmpegTest : public testing::TestWithParam<const char*> {
avcodec_init();
av_log_set_level(AV_LOG_FATAL);
av_register_all();
- av_register_protocol(&kFFmpegFileProtocol);
+ av_register_protocol2(&kFFmpegFileProtocol, sizeof(kFFmpegFileProtocol));
initialized = true;
}
diff --git a/media/filters/ffmpeg_glue.cc b/media/filters/ffmpeg_glue.cc
index cf06f35..6f637c3 100644
--- a/media/filters/ffmpeg_glue.cc
+++ b/media/filters/ffmpeg_glue.cc
@@ -134,7 +134,7 @@ FFmpegGlue::FFmpegGlue() {
// Register our protocol glue code with FFmpeg.
avcodec_init();
- av_register_protocol(&kFFmpegURLProtocol);
+ av_register_protocol2(&kFFmpegURLProtocol, sizeof(kFFmpegURLProtocol));
av_lockmgr_register(&LockManagerOperation);
// Now register the rest of FFmpeg.
diff --git a/media/test/ffmpeg_tests/ffmpeg_tests.cc b/media/test/ffmpeg_tests/ffmpeg_tests.cc
index 69bfc80..4e0820d 100644
--- a/media/test/ffmpeg_tests/ffmpeg_tests.cc
+++ b/media/test/ffmpeg_tests/ffmpeg_tests.cc
@@ -116,7 +116,7 @@ int main(int argc, const char** argv) {
avcodec_init();
av_log_set_level(verbose_level);
av_register_all();
- av_register_protocol(&kFFmpegFileProtocol);
+ av_register_protocol2(&kFFmpegFileProtocol, sizeof(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
diff --git a/media/tools/media_bench/media_bench.cc b/media/tools/media_bench/media_bench.cc
index 7e33b81..dae6921 100644
--- a/media/tools/media_bench/media_bench.cc
+++ b/media/tools/media_bench/media_bench.cc
@@ -224,7 +224,7 @@ int main(int argc, const char** argv) {
avcodec_init();
av_log_set_level(verbose_level);
av_register_all();
- av_register_protocol(&kFFmpegFileProtocol);
+ av_register_protocol2(&kFFmpegFileProtocol, sizeof(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
diff --git a/media/tools/omx_test/omx_test.cc b/media/tools/omx_test/omx_test.cc
index 0d7e972..777f55a 100644
--- a/media/tools/omx_test/omx_test.cc
+++ b/media/tools/omx_test/omx_test.cc
@@ -274,7 +274,7 @@ static bool InitFFmpeg() {
return false;
avcodec_init();
av_register_all();
- av_register_protocol(&kFFmpegFileProtocol);
+ av_register_protocol2(&kFFmpegFileProtocol, sizeof(kFFmpegFileProtocol));
return true;
}