summaryrefslogtreecommitdiffstats
path: root/third_party/ffmpeg
diff options
context:
space:
mode:
authorajwong@chromium.org <ajwong@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>2009-06-22 23:59:14 +0000
committerajwong@chromium.org <ajwong@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>2009-06-22 23:59:14 +0000
commitb2520c779bce29b5ee0613dbb84d93fef0bdb3ea (patch)
treeb0757b50cec03a177917a0c73daf1c7eeb3b174a /third_party/ffmpeg
parent60287ffd30023b51d7f183abb6948a63f9f1eb90 (diff)
downloadchromium_src-b2520c779bce29b5ee0613dbb84d93fef0bdb3ea.zip
chromium_src-b2520c779bce29b5ee0613dbb84d93fef0bdb3ea.tar.gz
chromium_src-b2520c779bce29b5ee0613dbb84d93fef0bdb3ea.tar.bz2
Refactor FFmpegVideoDecoder::OnDecode and unittest and add state tracking.
The decoder needs a concept of state to know when it should just stop attempting to decode. This is because ffmpeg will sometimes gives spurious frames back, which plays badly with the time presentation timestamp calculation logic. Review URL: http://codereview.chromium.org/132013 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@18990 0039d316-1c4b-4281-b951-d872f2087c98
Diffstat (limited to 'third_party/ffmpeg')
-rwxr-xr-xthird_party/ffmpeg/ffmpeg.gyp5
-rw-r--r--third_party/ffmpeg/include/win/stdint.h5
2 files changed, 9 insertions, 1 deletions
diff --git a/third_party/ffmpeg/ffmpeg.gyp b/third_party/ffmpeg/ffmpeg.gyp
index e031c27..ff066f1 100755
--- a/third_party/ffmpeg/ffmpeg.gyp
+++ b/third_party/ffmpeg/ffmpeg.gyp
@@ -92,7 +92,7 @@
'avcodec-52.dll',
'avformat-52.dll',
'avutil-50.dll',
- ],
+ ],
},
},
},
@@ -131,6 +131,9 @@
'../..', # The chromium 'src' directory.
],
'direct_dependent_settings': {
+ 'defines': [
+ '__STDC_CONSTANT_MACROS', # FFmpeg uses INT64_C.
+ ],
'include_dirs': [
'<(output_root)',
'../..', # The chromium 'src' directory.
diff --git a/third_party/ffmpeg/include/win/stdint.h b/third_party/ffmpeg/include/win/stdint.h
index 280bdb1..90bb029 100644
--- a/third_party/ffmpeg/include/win/stdint.h
+++ b/third_party/ffmpeg/include/win/stdint.h
@@ -23,4 +23,9 @@ typedef unsigned short uint16_t;
typedef unsigned int uint32_t;
typedef unsigned long long uint64_t;
+// Define the C99 INT64_C macro that is used for declaring 64-bit literals.
+// Technically, these should only be definied when __STDC_CONSTANT_MACROS
+// is defined.
+#define INT64_C(value) value##LL
+
#endif // THIRD_PARTY_FFMPEG_INCLUDE_WIN_STDINT_H_