summaryrefslogtreecommitdiffstats
path: root/media/ffmpeg/ffmpeg_common.h
diff options
context:
space:
mode:
authorscherkus@chromium.org <scherkus@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>2010-03-25 02:35:50 +0000
committerscherkus@chromium.org <scherkus@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>2010-03-25 02:35:50 +0000
commite8ae38c942bb83f77d4488846e2ddba4f751b886 (patch)
tree208151180785b8ccafeeb971f25ed9fe217e7934 /media/ffmpeg/ffmpeg_common.h
parentd1180bc74dfa68be142aff7ccf23a6fb5adad4b5 (diff)
downloadchromium_src-e8ae38c942bb83f77d4488846e2ddba4f751b886.zip
chromium_src-e8ae38c942bb83f77d4488846e2ddba4f751b886.tar.gz
chromium_src-e8ae38c942bb83f77d4488846e2ddba4f751b886.tar.bz2
Removed custom FFmpegLock. Removed ffmpeg headers from third_party/ffmpeg/include.
Patch by sergeyu@chromium.org BUG=23271 TEST=none Review URL: http://codereview.chromium.org/1289003 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@42573 0039d316-1c4b-4281-b951-d872f2087c98
Diffstat (limited to 'media/ffmpeg/ffmpeg_common.h')
-rw-r--r--media/ffmpeg/ffmpeg_common.h26
1 files changed, 3 insertions, 23 deletions
diff --git a/media/ffmpeg/ffmpeg_common.h b/media/ffmpeg/ffmpeg_common.h
index 9be245f..4b60046 100644
--- a/media/ffmpeg/ffmpeg_common.h
+++ b/media/ffmpeg/ffmpeg_common.h
@@ -19,34 +19,14 @@ extern "C" {
// Temporarily disable possible loss of data warning.
// TODO(scherkus): fix and upstream the compiler warnings.
MSVC_PUSH_DISABLE_WARNING(4244);
-#include "third_party/ffmpeg/include/libavcodec/avcodec.h"
-#include "third_party/ffmpeg/include/libavformat/avformat.h"
-#include "third_party/ffmpeg/include/libavutil/log.h"
+#include "third_party/ffmpeg/source/patched-ffmpeg-mt/libavcodec/avcodec.h"
+#include "third_party/ffmpeg/source/patched-ffmpeg-mt/libavformat/avformat.h"
+#include "third_party/ffmpeg/source/patched-ffmpeg-mt/libavutil/log.h"
MSVC_POP_WARNING();
} // extern "C"
namespace media {
-// FFmpegLock is used to serialize calls to avcodec_open(), avcodec_close(),
-// and av_find_stream_info() for an entire process because for whatever reason
-// it does Very Bad Things to other FFmpeg instances.
-//
-// TODO(scherkus): track down and upstream a fix to FFmpeg, if possible.
-class FFmpegLock : public Singleton<FFmpegLock> {
- public:
- Lock& lock();
-
- private:
- // Only allow Singleton to create and delete FFmpegLock.
- friend struct DefaultSingletonTraits<FFmpegLock>;
- FFmpegLock();
- virtual ~FFmpegLock();
-
- Lock lock_;
- DISALLOW_COPY_AND_ASSIGN(FFmpegLock);
-};
-
-
// Wraps FFmpeg's av_free() in a class that can be passed as a template argument
// to scoped_ptr_malloc.
class ScopedPtrAVFree {