From e32b4fea498f53f810503aa160d432778749675a Mon Sep 17 00:00:00 2001 From: Dan Minor Date: Tue, 29 Jan 2019 10:37:34 -0500 Subject: [PATCH] Allow 1x1 images in libvpx_vp8_encoder.cc MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Bug: webrtc:10099 Change-Id: I870e7262ef893b260f714b47c43f2465eed83006 Reviewed-on: https://webrtc-review.googlesource.com/c/120422 Commit-Queue: Dan Minor Reviewed-by: Erik Språng Cr-Commit-Position: refs/heads/master@{#26476} --- modules/video_coding/codecs/vp8/libvpx_vp8_encoder.cc | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/modules/video_coding/codecs/vp8/libvpx_vp8_encoder.cc b/modules/video_coding/codecs/vp8/libvpx_vp8_encoder.cc index 07c0167124..5e6a402999 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 @@ int LibvpxVp8Encoder::InitEncode(const VideoCodec* inst, 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) {