Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(1100)

Unified Diff: media/base/media.h

Issue 1684853003: WIP: allow to play Youtube if use_proprieraty_codecs=1 and ffmpeg_branding=Chromium (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 4 years, 10 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
« no previous file with comments | « content/renderer/pepper/video_decoder_shim.cc ('k') | media/base/media.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: media/base/media.h
diff --git a/media/base/media.h b/media/base/media.h
index 01a913bc45ff956702377f097a036015951821f0..f2d034f758b7d1ecc5c8e688a94aebb196538124 100644
--- a/media/base/media.h
+++ b/media/base/media.h
@@ -8,7 +8,9 @@
#ifndef MEDIA_BASE_MEDIA_H_
#define MEDIA_BASE_MEDIA_H_
+#include "media/base/audio_codecs.h"
#include "media/base/media_export.h"
+#include "media/base/video_codecs.h"
namespace base {
class FilePath;
@@ -20,6 +22,12 @@ namespace media {
// features.
MEDIA_EXPORT void InitializeMediaLibrary();
+// Return true if ffmpeg supports the given audio codec.
+MEDIA_EXPORT bool IsAudioCodecSupported(media::AudioCodec codec);
+
+// Return true if ffmpeg supports the given video codec.
+MEDIA_EXPORT bool IsVideoCodecSupported(media::VideoCodec codec);
+
} // namespace media
#endif // MEDIA_BASE_MEDIA_H_
« no previous file with comments | « content/renderer/pepper/video_decoder_shim.cc ('k') | media/base/media.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698