Commit 8a08503b authored by Michael Niedermayer's avatar Michael Niedermayer

pngdec: Print error if signature is wrong.

Signed-off-by: 's avatarMichael Niedermayer <michaelni@gmx.at>
parent 184fc600
......@@ -407,8 +407,10 @@ static int decode_frame(AVCodecContext *avctx,
/* check signature */
if (memcmp(s->bytestream, ff_pngsig, 8) != 0 &&
memcmp(s->bytestream, ff_mngsig, 8) != 0)
memcmp(s->bytestream, ff_mngsig, 8) != 0) {
av_log(avctx, AV_LOG_ERROR, "Missing png signature\n");
return -1;
}
s->bytestream+= 8;
s->y=
s->state=0;
......
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