You've already forked FFmpeg
mirror of
https://github.com/FFmpeg/FFmpeg.git
synced 2025-08-15 14:13:16 +02:00
pngdec: Print error if signature is wrong.
Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
This commit is contained in:
@@ -407,8 +407,10 @@ static int decode_frame(AVCodecContext *avctx,
|
|||||||
|
|
||||||
/* check signature */
|
/* check signature */
|
||||||
if (memcmp(s->bytestream, ff_pngsig, 8) != 0 &&
|
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;
|
return -1;
|
||||||
|
}
|
||||||
s->bytestream+= 8;
|
s->bytestream+= 8;
|
||||||
s->y=
|
s->y=
|
||||||
s->state=0;
|
s->state=0;
|
||||||
|
Reference in New Issue
Block a user