aboutsummaryrefslogtreecommitdiffstats
path: root/libavcodec
diff options
context:
space:
mode:
authorAndreas Rheinhardt <andreas.rheinhardt@outlook.com>2024-04-07 19:18:50 +0200
committerAndreas Rheinhardt <andreas.rheinhardt@outlook.com>2024-04-11 12:53:26 +0200
commit6c55cb95ed9e15cc84985fdc539dffe5c0f7e4a5 (patch)
tree2e8a7462d641d1b65ec57acc9aef67d6cec84ec7 /libavcodec
parent3cd136bc120aee7ccba5965b400e121dc1476c10 (diff)
downloadffmpeg-6c55cb95ed9e15cc84985fdc539dffe5c0f7e4a5.tar.gz
avcodec/ac3enc_float: Remove uninformative error message
AVERROR(ENOMEM) is enough. Signed-off-by: Andreas Rheinhardt <andreas.rheinhardt@outlook.com>
Diffstat (limited to 'libavcodec')
-rw-r--r--libavcodec/ac3enc_float.c4
1 files changed, 1 insertions, 3 deletions
diff --git a/libavcodec/ac3enc_float.c b/libavcodec/ac3enc_float.c
index 77a7725f31..cbe87dc5fe 100644
--- a/libavcodec/ac3enc_float.c
+++ b/libavcodec/ac3enc_float.c
@@ -88,10 +88,8 @@ static av_cold int ac3_float_mdct_init(AC3EncodeContext *s)
{
const float scale = -2.0 / AC3_WINDOW_SIZE;
float *window = av_malloc_array(AC3_BLOCK_SIZE, sizeof(*window));
- if (!window) {
- av_log(s->avctx, AV_LOG_ERROR, "Cannot allocate memory.\n");
+ if (!window)
return AVERROR(ENOMEM);
- }
ff_kbd_window_init(window, 5.0, AC3_BLOCK_SIZE);
s->mdct_window = window;