lavc/jpeglsenc: fix allocation in case of negative linesize, and add malloc check
authorStefano Sabatini <stefasab@gmail.com>
Sun, 18 Mar 2012 15:42:32 +0000 (16:42 +0100)
committerStefano Sabatini <stefasab@gmail.com>
Sun, 18 Mar 2012 20:19:09 +0000 (21:19 +0100)
commit0ca15aa066f1fad20853f5a560f13688d095ea81
tree82c83aa67212d53b832bd02fe5efe74ba93e552c
parenta41340f8e85a13ec0b5a8a6bb93d09342adac047
lavc/jpeglsenc: fix allocation in case of negative linesize, and add malloc check

Fix crash with negative linesizes, fix trac ticket #1078.
libavcodec/jpeglsenc.c