Fixes other half of Ticket1105
Unified · Split
| @@ -192,6 +192,11 @@ static av_cold int flashsv2_encode_init(AVCodecContext * avctx) · 191 unmodified lines | |||
| 192 | "Input dimensions too large, input must be max 4096x4096 !\n"); | 192 | "Input dimensions too large, input must be max 4096x4096 !\n"); |
| 193 | return -1; | 193 | return -1; |
| 194 | } | 194 | } |
| 195 | if ((avctx->width < 16) || (avctx->height < 16)) { | ||
| 196 | av_log(avctx, AV_LOG_ERROR, | ||
| 197 | "Input dimensions too small, input must be max 16x16 !\n"); | ||
| 198 | return -1; | ||
| 199 | } | ||
| 195 | 200 | ||
| 196 | if (av_image_check_size(avctx->width, avctx->height, 0, avctx) < 0) | 201 | if (av_image_check_size(avctx->width, avctx->height, 0, avctx) < 0) |
| 197 | return -1; | 202 | return -1; |