1 // Copyright (c) 2010 The Chromium Authors. All rights reserved.
2 // Use of this source code is governed by a BSD-style license that can be
3 // found in the LICENSE file.
7 #include "base/test/test_suite.h"
8 #include "media/base/media.h"
9 #include "media/ffmpeg/ffmpeg_common.h"
10 #include "media/ffmpeg/file_protocol.h"
12 static bool InitFFmpeg() {
13 if (!media::InitializeMediaLibrary(FilePath()))
17 av_register_protocol2(&kFFmpegFileProtocol
, sizeof(kFFmpegFileProtocol
));
21 int main(int argc
, char** argv
) {
23 fprintf(stderr
, "Failed to init ffmpeg\n");
26 return TestSuite(argc
, argv
).Run();