[FFmpeg-cvslog] avcodec/ac3enc_float: Remove uninformative error message
Andreas Rheinhardt
git at videolan.org
Thu Apr 11 14:00:28 EEST 2024
ffmpeg | branch: master | Andreas Rheinhardt <andreas.rheinhardt at outlook.com> | Sun Apr 7 19:18:50 2024 +0200| [6c55cb95ed9e15cc84985fdc539dffe5c0f7e4a5] | committer: Andreas Rheinhardt
avcodec/ac3enc_float: Remove uninformative error message
AVERROR(ENOMEM) is enough.
Signed-off-by: Andreas Rheinhardt <andreas.rheinhardt at outlook.com>
> http://git.videolan.org/gitweb.cgi/ffmpeg.git/?a=commit;h=6c55cb95ed9e15cc84985fdc539dffe5c0f7e4a5
---
libavcodec/ac3enc_float.c | 4 +---
1 file changed, 1 insertion(+), 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;
More information about the ffmpeg-cvslog
mailing list