Signed-off-by: Andreas Rheinhardt <andreas.rheinha...@outlook.com>
---
 libavcodec/vp9.c | 8 ++------
 1 file changed, 2 insertions(+), 6 deletions(-)

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;
-- 
2.27.0

_______________________________________________
ffmpeg-devel mailing list
ffmpeg-devel@ffmpeg.org
https://ffmpeg.org/mailman/listinfo/ffmpeg-devel

To unsubscribe, visit link above, or email
ffmpeg-devel-requ...@ffmpeg.org with subject "unsubscribe".

Reply via email to