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

Unified Diff: webrtc/api/android/java/src/org/webrtc/FileVideoCapturer.java

Issue 2468943002: More tolerant format name for FileVideoCapturer (Closed)
Patch Set: Created 4 years, 1 month 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 | « no previous file | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: webrtc/api/android/java/src/org/webrtc/FileVideoCapturer.java
diff --git a/webrtc/api/android/java/src/org/webrtc/FileVideoCapturer.java b/webrtc/api/android/java/src/org/webrtc/FileVideoCapturer.java
index 3796b698f445d3c6e3962be87257331fa151ae91..a0552247c95b1c24a33c9ab0975cce36bc0f91b0 100644
--- a/webrtc/api/android/java/src/org/webrtc/FileVideoCapturer.java
+++ b/webrtc/api/android/java/src/org/webrtc/FileVideoCapturer.java
@@ -87,8 +87,9 @@ public class FileVideoCapturer implements VideoCapturer {
}
}
Logging.d(TAG, "Color space: " + colorSpace);
- if (!colorSpace.equals("420")) {
- throw new IllegalArgumentException("Does not support any other color space than I420");
+ if (!colorSpace.equals("420") && !colorSpace.equals("420mpeg2")) {
+ throw new IllegalArgumentException(
+ "Does not support any other color space than I420 or I420mpeg2");
}
if ((w % 2) == 1 || (h % 2) == 1) {
throw new IllegalArgumentException("Does not support odd width or height");
« no previous file with comments | « no previous file | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698