diff options
Diffstat (limited to 'tests')
-rw-r--r-- | tests/api/api-flac-test.c | 2 | ||||
-rw-r--r-- | tests/api/api-threadmessage-test.c | 2 |
2 files changed, 2 insertions, 2 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); } diff --git a/tests/api/api-threadmessage-test.c b/tests/api/api-threadmessage-test.c index 3c693a70d1..b6a74f678b 100644 --- a/tests/api/api-threadmessage-test.c +++ b/tests/api/api-threadmessage-test.c @@ -101,7 +101,7 @@ static void *sender_thread(void *arg) msg.frame->format = AV_PIX_FMT_RGBA; msg.frame->width = 320; msg.frame->height = 240; - ret = av_frame_get_buffer(msg.frame, 32); + ret = av_frame_get_buffer(msg.frame, 0); if (ret < 0) { av_frame_free(&msg.frame); break; |