diff options
| author | TazyFoundSoup <gardendistrict0x0@outlook.com> | 2026-03-01 16:25:07 +1100 |
|---|---|---|
| committer | TazyFoundSoup <gardendistrict0x0@outlook.com> | 2026-03-01 16:25:07 +1100 |
| commit | 13f9b8ac3fbcd32302918f8ac6c54d3c95849818 (patch) | |
| tree | 70a19bfaa59d7c2f5ea2c8217a0bd526bd91f568 /src/format | |
| parent | e6611a0bb47c93fd26c5ef4d7a7c7d2bfd099bf7 (diff) | |
feat(png): Add require valid argument to ff_open_png
Diffstat (limited to 'src/format')
| -rw-r--r-- | src/format/image/png.c | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/src/format/image/png.c b/src/format/image/png.c index a3c4176..fd9837b 100644 --- a/src/format/image/png.c +++ b/src/format/image/png.c @@ -32,9 +32,11 @@ ff_result ff_png_isvalid(ff_stream *stream) return FF_RESULT_OK; } -ff_result ff_open_png(ff_stream *stream, ff_png_ctx **out_ctx) +ff_result ff_open_png(ff_stream *stream, ff_png_ctx **out_ctx, ff_flag require_valid) { - + + (void)require_valid; // Just cast to void for now until I impl + ff_png_ctx *ctx = malloc(sizeof(ff_png_ctx)); if (!ctx) { ctx->last_error = FF_RESULT_ERROR_MEMORY_ALLOCATION; |
