aboutsummaryrefslogtreecommitdiffstats
path: root/libavcodec/gifdec.c
diff options
context:
space:
mode:
authorPaul B Mahol <onemda@gmail.com>2013-01-03 19:14:40 +0000
committerPaul B Mahol <onemda@gmail.com>2013-01-03 19:33:57 +0000
commit0c8943939eb0a0b7172c0664bd0b594c069c9bb7 (patch)
tree04cc1cb1cebe64adbef6ca4c347d483a30d7e477 /libavcodec/gifdec.c
parentbbb11f383ee86cb7e6dbd5205f817d6a92e91d99 (diff)
downloadffmpeg-0c8943939eb0a0b7172c0664bd0b594c069c9bb7.tar.gz
gifdec: use log level that have more common sense
Signed-off-by: Paul B Mahol <onemda@gmail.com>
Diffstat (limited to 'libavcodec/gifdec.c')
-rw-r--r--libavcodec/gifdec.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/libavcodec/gifdec.c b/libavcodec/gifdec.c
index b7aafb2cf2..e5e84aea12 100644
--- a/libavcodec/gifdec.c
+++ b/libavcodec/gifdec.c
@@ -164,7 +164,7 @@ static int gif_read_image(GifState *s)
pal = s->local_palette;
} else {
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;
}
@@ -185,7 +185,7 @@ static int gif_read_image(GifState *s)
/* verify that all the image is inside the screen dimensions */
if (left + width > s->screen_width ||
top + height > s->screen_height)
- return AVERROR(EINVAL);
+ return AVERROR_INVALIDDATA;
/* process disposal method */
if (s->gce_prev_disposal == GCE_DISPOSAL_BACKGROUND) {