diff options
author | Andreas Rheinhardt <andreas.rheinhardt@outlook.com> | 2023-10-12 17:06:41 +0200 |
---|---|---|
committer | Andreas Rheinhardt <andreas.rheinhardt@outlook.com> | 2023-10-22 22:11:37 +0200 |
commit | 6e4030a07b79a7a40c005d6257a3be1ec702bba6 (patch) | |
tree | 51c7553a6e60f8c242279a34f392894ffec9fecc /libavcodec/av1dec.c | |
parent | 315c956cbd14f021e49dac7fc0b906fad1672aad (diff) | |
download | ffmpeg-6e4030a07b79a7a40c005d6257a3be1ec702bba6.tar.gz |
avcodec/av1dec, vaapi_av1: Remove excessive logmessages
Signed-off-by: Andreas Rheinhardt <andreas.rheinhardt@outlook.com>
Diffstat (limited to 'libavcodec/av1dec.c')
-rw-r--r-- | libavcodec/av1dec.c | 10 |
1 files changed, 2 insertions, 8 deletions
diff --git a/libavcodec/av1dec.c b/libavcodec/av1dec.c index 1a4339b346..6114cb78e6 100644 --- a/libavcodec/av1dec.c +++ b/libavcodec/av1dec.c @@ -819,19 +819,13 @@ static av_cold int av1_decode_init(AVCodecContext *avctx) for (int i = 0; i < FF_ARRAY_ELEMS(s->ref); i++) { s->ref[i].f = av_frame_alloc(); - if (!s->ref[i].f) { - av_log(avctx, AV_LOG_ERROR, - "Failed to allocate reference frame buffer %d.\n", i); + if (!s->ref[i].f) return AVERROR(ENOMEM); - } } s->cur_frame.f = av_frame_alloc(); - if (!s->cur_frame.f) { - av_log(avctx, AV_LOG_ERROR, - "Failed to allocate current frame buffer.\n"); + if (!s->cur_frame.f) return AVERROR(ENOMEM); - } ret = ff_cbs_init(&s->cbc, AV_CODEC_ID_AV1, avctx); if (ret < 0) |