gifdec: check that the image dimensions are non-zero
authorAnton Khirnov <anton@khirnov.net>
Fri, 15 Nov 2013 09:15:24 +0000 (10:15 +0100)
committerAnton Khirnov <anton@khirnov.net>
Thu, 21 Nov 2013 19:52:42 +0000 (20:52 +0100)
commitc453723ad7d14abc5e82677eebaa6025fa598f08
tree525444bc5c740a60c3b3407cf33fcee054ac9ccd
parent074c769de93bf12e9f44d77e58a8c7167f9dfb13
gifdec: check that the image dimensions are non-zero

Also add an error message an return a more suitable error code
(INVALIDDATA, not EINVAL);
Found-by: Mateusz "j00ru" Jurczyk and Gynvael Coldwind
CC:libav-stable@libav.org
libavcodec/gifdec.c