Commit 0c894393 authored by Paul B Mahol's avatar Paul B Mahol

gifdec: use log level that have more common sense

Signed-off-by: 's avatarPaul B Mahol <onemda@gmail.com>
parent bbb11f38
...@@ -164,7 +164,7 @@ static int gif_read_image(GifState *s) ...@@ -164,7 +164,7 @@ static int gif_read_image(GifState *s)
pal = s->local_palette; pal = s->local_palette;
} else { } else {
if (!s->has_global_palette) { if (!s->has_global_palette) {
av_log(s->avctx, AV_LOG_FATAL, "picture doesn't have either global or local palette.\n"); av_log(s->avctx, AV_LOG_ERROR, "picture doesn't have either global or local palette.\n");
return AVERROR_INVALIDDATA; return AVERROR_INVALIDDATA;
} }
...@@ -185,7 +185,7 @@ static int gif_read_image(GifState *s) ...@@ -185,7 +185,7 @@ static int gif_read_image(GifState *s)
/* verify that all the image is inside the screen dimensions */ /* verify that all the image is inside the screen dimensions */
if (left + width > s->screen_width || if (left + width > s->screen_width ||
top + height > s->screen_height) top + height > s->screen_height)
return AVERROR(EINVAL); return AVERROR_INVALIDDATA;
/* process disposal method */ /* process disposal method */
if (s->gce_prev_disposal == GCE_DISPOSAL_BACKGROUND) { if (s->gce_prev_disposal == GCE_DISPOSAL_BACKGROUND) {
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment