Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/FFmpeg/FFmpeg.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAndreas Rheinhardt <andreas.rheinhardt@outlook.com>2021-05-05 22:21:25 +0300
committerAndreas Rheinhardt <andreas.rheinhardt@outlook.com>2021-05-10 23:12:01 +0300
commit7aa8c95f47f8f096adfd8f274730de72e5b938d0 (patch)
tree3c5ec30429db8c78d95af35b2e933444f5781783 /libavcodec/vp9.c
parent3572590e75950487c88db2130dac08a5a2b892b2 (diff)
avcodec/vp9: Remove excessive log messages
Signed-off-by: Andreas Rheinhardt <andreas.rheinhardt@outlook.com>
Diffstat (limited to 'libavcodec/vp9.c')
-rw-r--r--libavcodec/vp9.c8
1 files 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;