diff --git a/webrtc/api/android/java/src/org/webrtc/FileVideoCapturer.java b/webrtc/api/android/java/src/org/webrtc/FileVideoCapturer.java index 3796b698f4..a0552247c9 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");