diff options
author | Anton Khirnov <anton@khirnov.net> | 2017-02-08 11:51:17 +0300 |
---|---|---|
committer | Anton Khirnov <anton@khirnov.net> | 2020-05-22 15:38:57 +0300 |
commit | f30a41a6086eb8c10f66090739a2a4f8491c3c7a (patch) | |
tree | fcd7dfaa1be12dff576c2e31fa719fc3867b1b34 /tests/api/api-flac-test.c | |
parent | 8cfab9fa8c1529f3d4db3e7d5b317acdbc08d37d (diff) |
Stop hardcoding align=32 in av_frame_get_buffer() calls.
Use 0, which selects the alignment automatically.
Diffstat (limited to 'tests/api/api-flac-test.c')
-rw-r--r-- | tests/api/api-flac-test.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/tests/api/api-flac-test.c b/tests/api/api-flac-test.c index e8e8cbf1e7..ae6a9316d8 100644 --- a/tests/api/api-flac-test.c +++ b/tests/api/api-flac-test.c @@ -126,7 +126,7 @@ static int run_test(AVCodec *enc, AVCodec *dec, AVCodecContext *enc_ctx, in_frame->nb_samples = enc_ctx->frame_size; in_frame->format = enc_ctx->sample_fmt; in_frame->channel_layout = enc_ctx->channel_layout; - if (av_frame_get_buffer(in_frame, 32) != 0) { + if (av_frame_get_buffer(in_frame, 0) != 0) { av_log(NULL, AV_LOG_ERROR, "Can't allocate a buffer for input frame\n"); return AVERROR(ENOMEM); } |