diff mbox series

[FFmpeg-devel,09/23] avcodec/vp9: Remove excessive log messages

Message ID VI1PR0301MB21592BFBD6FB558E3279FB258F589@VI1PR0301MB2159.eurprd03.prod.outlook.com
State Accepted
Commit 7aa8c95f47f8f096adfd8f274730de72e5b938d0
Headers show
Series [FFmpeg-devel,01/23] avcodec/ljpegenc: Mark encoder as init-threadsafe | expand

Checks

Context Check Description
andriy/x86_make success Make finished
andriy/x86_make_fate success Make fate finished
andriy/PPC64_make success Make finished
andriy/PPC64_make_fate success Make fate finished

Commit Message

Andreas Rheinhardt May 6, 2021, 5:11 a.m. UTC
Signed-off-by: Andreas Rheinhardt <andreas.rheinhardt@outlook.com>
---
 libavcodec/vp9.c | 8 ++------
 1 file changed, 2 insertions(+), 6 deletions(-)
diff mbox series

Patch

diff --git a/libavcodec/vp9.c b/libavcodec/vp9.c
index 7409178501..fd0e0dc54f 100644
--- a/libavcodec/vp9.c
+++ b/libavcodec/vp9.c
@@ -1797,18 +1797,14 @@  static int init_frames(AVCodecContext *avctx)
 
     for (i = 0; i < 3; i++) {
         s->s.frames[i].tf.f = av_frame_alloc();
-        if (!s->s.frames[i].tf.f) {
-            av_log(avctx, AV_LOG_ERROR, "Failed to allocate frame buffer %d\n", i);
+        if (!s->s.frames[i].tf.f)
             return AVERROR(ENOMEM);
-        }
     }
     for (i = 0; i < 8; i++) {
         s->s.refs[i].f = av_frame_alloc();
         s->next_refs[i].f = av_frame_alloc();
-        if (!s->s.refs[i].f || !s->next_refs[i].f) {
-            av_log(avctx, AV_LOG_ERROR, "Failed to allocate frame buffer %d\n", i);
+        if (!s->s.refs[i].f || !s->next_refs[i].f)
             return AVERROR(ENOMEM);
-        }
     }
 
     return 0;