Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/FFmpeg/FFmpeg.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAndreas Rheinhardt <andreas.rheinhardt@outlook.com>2022-03-15 20:20:04 +0300
committerAndreas Rheinhardt <andreas.rheinhardt@outlook.com>2022-03-19 02:18:36 +0300
commit1692a97251896035ce4055eb101bb6c2f9b0fae1 (patch)
tree4e9623599d4e5f13531df483418cefd04a5ad0bd /libavcodec/png.c
parente85095b5243a2c7d0cea76f34866bb61b4c97b06 (diff)
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.c10
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;