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}
This commit is contained in:
@ -326,7 +326,7 @@ int LibvpxVp8Encoder::InitEncode(const VideoCodec* inst,
|
|||||||
if (inst->maxBitrate > 0 && inst->startBitrate > inst->maxBitrate) {
|
if (inst->maxBitrate > 0 && inst->startBitrate > inst->maxBitrate) {
|
||||||
return WEBRTC_VIDEO_CODEC_ERR_PARAMETER;
|
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;
|
return WEBRTC_VIDEO_CODEC_ERR_PARAMETER;
|
||||||
}
|
}
|
||||||
if (number_of_cores < 1) {
|
if (number_of_cores < 1) {
|
||||||
|
|||||||
Reference in New Issue
Block a user