summaryrefslogtreecommitdiff
path: root/libavcodec/encode.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/encode.c
parent8cfab9fa8c1529f3d4db3e7d5b317acdbc08d37d (diff)
Stop hardcoding align=32 in av_frame_get_buffer() calls.
Use 0, which selects the alignment automatically.
Diffstat (limited to 'libavcodec/encode.c')
-rw-r--r--libavcodec/encode.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/libavcodec/encode.c b/libavcodec/encode.c
index 9ed2cf0f59..03d579fd4e 100644
--- a/libavcodec/encode.c
+++ b/libavcodec/encode.c
@@ -90,7 +90,7 @@ static int pad_last_frame(AVCodecContext *s, AVFrame **dst, const AVFrame *src)
frame->channel_layout = src->channel_layout;
frame->channels = src->channels;
frame->nb_samples = s->frame_size;
- ret = av_frame_get_buffer(frame, 32);
+ ret = av_frame_get_buffer(frame, 0);
if (ret < 0)
goto fail;