More tolerant format name for FileVideoCapturer
Before only C420 as format name was accepted, now C420mpeg2 is also accepted. Both means the same thing. BUG=webrtc:6545 NOTRY=True Review-Url: https://codereview.webrtc.org/2468943002 Cr-Commit-Position: refs/heads/master@{#14897}
This commit is contained in:
parent
d0a151c698
commit
d192dce1c5
@ -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");
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user