commit | e32b4fea498f53f810503aa160d432778749675a | [log] [tgz] |
---|---|---|
author | Dan Minor <dminor@webrtc.org> | Tue Jan 29 15:37:34 2019 |
committer | Commit Bot <commit-bot@chromium.org> | Wed Jan 30 17:40:35 2019 |
tree | 1801595ba185c9168bcedb9868af2f01e1a80eff | |
parent | 170a4b383f8d4e2f18e6d23dbd6679ab73a07303 [diff] |
Allow 1x1 images in libvpx_vp8_encoder.cc Bug: webrtc:10099 Change-Id: I870e7262ef893b260f714b47c43f2465eed83006 Reviewed-on: https://webrtc-review.googlesource.com/c/120422 Commit-Queue: Dan Minor <dminor@webrtc.org> Reviewed-by: Erik Språng <sprang@webrtc.org> Cr-Commit-Position: refs/heads/master@{#26476}
diff --git a/modules/video_coding/codecs/vp8/libvpx_vp8_encoder.cc b/modules/video_coding/codecs/vp8/libvpx_vp8_encoder.cc index 07c0167..5e6a402 100644 --- a/modules/video_coding/codecs/vp8/libvpx_vp8_encoder.cc +++ b/modules/video_coding/codecs/vp8/libvpx_vp8_encoder.cc
@@ -326,7 +326,7 @@ if (inst->maxBitrate > 0 && inst->startBitrate > inst->maxBitrate) { return WEBRTC_VIDEO_CODEC_ERR_PARAMETER; } - if (inst->width <= 1 || inst->height <= 1) { + if (inst->width < 1 || inst->height < 1) { return WEBRTC_VIDEO_CODEC_ERR_PARAMETER; } if (number_of_cores < 1) {