summaryrefslogtreecommitdiff
path: root/libavcodec/pngenc.c
diff options
context:
space:
mode:
authorAnton Khirnov <anton@khirnov.net>2017-02-08 09:51:17 +0100
committerAnton Khirnov <anton@khirnov.net>2020-05-22 14:38:57 +0200
commitf30a41a6086eb8c10f66090739a2a4f8491c3c7a (patch)
treefcd7dfaa1be12dff576c2e31fa719fc3867b1b34 /libavcodec/pngenc.c
parent8cfab9fa8c1529f3d4db3e7d5b317acdbc08d37d (diff)
Stop hardcoding align=32 in av_frame_get_buffer() calls.
Use 0, which selects the alignment automatically.
Diffstat (limited to 'libavcodec/pngenc.c')
-rw-r--r--libavcodec/pngenc.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/libavcodec/pngenc.c b/libavcodec/pngenc.c
index 331a0aa687..efcae8c494 100644
--- a/libavcodec/pngenc.c
+++ b/libavcodec/pngenc.c
@@ -741,7 +741,7 @@ static int apng_encode_frame(AVCodecContext *avctx, const AVFrame *pict,
diffFrame->format = pict->format;
diffFrame->width = pict->width;
diffFrame->height = pict->height;
- if ((ret = av_frame_get_buffer(diffFrame, 32)) < 0)
+ if ((ret = av_frame_get_buffer(diffFrame, 0)) < 0)
goto fail;
original_bytestream = s->bytestream;
@@ -956,7 +956,7 @@ static int encode_apng(AVCodecContext *avctx, AVPacket *pkt,
s->prev_frame->format = pict->format;
s->prev_frame->width = pict->width;
s->prev_frame->height = pict->height;
- if ((ret = av_frame_get_buffer(s->prev_frame, 32)) < 0)
+ if ((ret = av_frame_get_buffer(s->prev_frame, 0)) < 0)
return ret;
}