History

gifenc: support resolutions up to 65535x65535

Maybe someone can add a check in the second gif encoder (rgb24), because I'm not sure where it should be added.

Piotr Bandurski committed 14 years ago

Commit e03ddbc1 parent d2581dc1 file · +5 −0Browse files

Unified · Split

libavcodec/gif.c+5−0
@@ -145,6 +145,11 @@ static av_cold int gif_encode_init(AVCodecContext *avctx) · 144 unmodified lines
145145 {
146146 GIFContext *s = avctx->priv_data;
147147
148+ if (avctx->width > 65535 || avctx->height > 65535) {
149+ av_log(avctx, AV_LOG_ERROR, "GIF does not support resolutions above 65535x65535\n");
150+ return -1;
151+ }
152+
148153 avctx->coded_frame = &s->picture;
149154 s->lzw = av_mallocz(ff_lzw_encode_state_size);
150155 if (!s->lzw)

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