History

flashsv2enc: fix division by zero

Fixes other half of Ticket1105

Michael Niedermayer committed 14 years ago

Commit 2a37ac01 parent 40d8c891 file · +5 −0Browse files

Unified · Split

libavcodec/flashsv2enc.c+5−0
@@ -192,6 +192,11 @@ static av_cold int flashsv2_encode_init(AVCodecContext * avctx) · 191 unmodified lines
192192 "Input dimensions too large, input must be max 4096x4096 !\n");
193193 return -1;
194194 }
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+ }
195200
196201 if (av_image_check_size(avctx->width, avctx->height, 0, avctx) < 0)
197202 return -1;

Keyboard shortcuts

General

Show keyboard shortcuts
?
Focus the current search
/

Issues and pull requests

Open filters
f

Issues, pull requests and Inbox

Select next item
j↓
Select previous item
k↑
Open selected item
Enter
Dismiss filters or clear selection
Esc

Repository code

Go to file
t