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

Unified Diff: webrtc/modules/video_coding/codecs/vp9/vp9_noop.cc

Issue 1970343002: Make sure WebRTC works without libvpx VP9 support. (Closed) Base URL: https://chromium.googlesource.com/external/webrtc.git@master
Patch Set: add test to make sure VP9 support isn't announced Created 4 years, 7 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
Index: webrtc/modules/video_coding/codecs/vp9/vp9_noop.cc
diff --git a/webrtc/test/fuzzers/rtp_packet_fuzzer.cc b/webrtc/modules/video_coding/codecs/vp9/vp9_noop.cc
similarity index 52%
copy from webrtc/test/fuzzers/rtp_packet_fuzzer.cc
copy to webrtc/modules/video_coding/codecs/vp9/vp9_noop.cc
index a9efdb96ecfe4f7a77873f54edbb55108c9497f9..cc37e1adbbd47b91a73ea6624a86cedef7a7231f 100644
--- a/webrtc/test/fuzzers/rtp_packet_fuzzer.cc
+++ b/webrtc/modules/video_coding/codecs/vp9/vp9_noop.cc
@@ -6,24 +6,34 @@
* tree. An additional intellectual property rights grant can be found
* in the file PATENTS. All contributing project authors may
* be found in the AUTHORS file in the root of the source tree.
+ *
*/
-#include "webrtc/modules/rtp_rtcp/source/rtp_packet_received.h"
+
+#if !defined(RTC_DISABLE_VP9)
+#error
+#endif // !defined(RTC_DISABLE_VP9)
+
+#include "webrtc/base/checks.h"
+#include "webrtc/modules/video_coding/codecs/vp9/include/vp9.h"
namespace webrtc {
-void FuzzOneInput(const uint8_t* data, size_t size) {
- RtpPacketReceived packet;
+bool VP9Encoder::IsSupported() {
+ return false;
+}
+
+VP9Encoder* VP9Encoder::Create() {
+ RTC_NOTREACHED();
+ return nullptr;
+}
- packet.Parse(data, size);
+bool VP9Decoder::IsSupported() {
+ return false;
+}
- // Call packet accessors because they have extra checks.
- packet.Marker();
- packet.PayloadType();
- packet.SequenceNumber();
- packet.Timestamp();
- packet.Ssrc();
- packet.Csrcs();
+VP9Decoder* VP9Decoder::Create() {
+ RTC_NOTREACHED();
+ return nullptr;
}
} // namespace webrtc
-

Powered by Google App Engine
This is Rietveld 408576698