summaryrefslogtreecommitdiff
path: root/src/format
diff options
context:
space:
mode:
Diffstat (limited to 'src/format')
-rw-r--r--src/format/image/png.c3
1 files changed, 0 insertions, 3 deletions
diff --git a/src/format/image/png.c b/src/format/image/png.c
index 3aaaf69..f15a91d 100644
--- a/src/format/image/png.c
+++ b/src/format/image/png.c
@@ -57,9 +57,6 @@ ff_result ff_open_png(ff_stream *stream, ff_png_ctx **out_ctx)
if (res != FF_RESULT_OK) {
ff_dprintf("png: validation failed (%d)\n", res);
free(ctx);
- ctx->last_error = res;
-
- ctx->last_error = res;
return res;
}