diff options
author | Andreas Rheinhardt <andreas.rheinhardt@outlook.com> | 2022-03-15 18:20:04 +0100 |
---|---|---|
committer | Andreas Rheinhardt <andreas.rheinhardt@outlook.com> | 2022-03-19 00:18:36 +0100 |
commit | 1692a97251896035ce4055eb101bb6c2f9b0fae1 (patch) | |
tree | 4e9623599d4e5f13531df483418cefd04a5ad0bd /libavcodec/png.c | |
parent | e85095b5243a2c7d0cea76f34866bb61b4c97b06 (diff) | |
download | ffmpeg-1692a97251896035ce4055eb101bb6c2f9b0fae1.tar.gz |
avcodec/pngenc: Use ff_deflate_init/end() wrappers
They return nicer error messages.
Signed-off-by: Andreas Rheinhardt <andreas.rheinhardt@outlook.com>
Diffstat (limited to 'libavcodec/png.c')
-rw-r--r-- | libavcodec/png.c | 10 |
1 files changed, 0 insertions, 10 deletions
diff --git a/libavcodec/png.c b/libavcodec/png.c index e772eaad26..34f649815a 100644 --- a/libavcodec/png.c +++ b/libavcodec/png.c @@ -38,16 +38,6 @@ static const uint8_t ff_png_pass_xshift[NB_PASSES] = { 3, 3, 2, 2, 1, 1, 0 }; -void *ff_png_zalloc(void *opaque, unsigned int items, unsigned int size) -{ - return av_calloc(items, size); -} - -void ff_png_zfree(void *opaque, void *ptr) -{ - av_free(ptr); -} - int ff_png_get_nb_channels(int color_type) { int channels; |