Ticket #3357: patchpng.diff

File patchpng.diff, 451 bytes (added by Carl Eugen Hoyos, 12 years ago)
  • libavcodec/pngdec.c

    diff --git a/libavcodec/pngdec.c b/libavcodec/pngdec.c
    index 516dd41..2b84850 100644
    a b static int decode_frame(AVCodecContext *avctx,  
    546546    for (;;) {
    547547        if (bytestream2_get_bytes_left(&s->gb) <= 0) {
    548548            av_log(avctx, AV_LOG_ERROR, "No bytes left\n");
    549             goto fail;
     549            goto exit_loop;
    550550        }
    551551
    552552        length = bytestream2_get_be32(&s->gb);