diff options
author | Andreas Rheinhardt <andreas.rheinhardt@outlook.com> | 2024-05-25 20:23:52 +0200 |
---|---|---|
committer | Andreas Rheinhardt <andreas.rheinhardt@outlook.com> | 2024-05-31 14:18:33 +0200 |
commit | eac8dcb1871c4e16c7288d7f447067a4d41b345e (patch) | |
tree | 9a2ecdc865082c7b916bb30ef01a546b5a8d2f11 /libavcodec | |
parent | b1702afdfdfa111cca0c69c48c43e108a397eeb0 (diff) | |
download | ffmpeg-eac8dcb1871c4e16c7288d7f447067a4d41b345e.tar.gz |
avcodec/vc2enc: Remove superfluous error message
ff_get_encode_buffer() already emits an error message of its own.
While just at it, also check for ret < 0 instead of just ret != 0.
Reviewed-by: Lynne <dev@lynne.ee>
Signed-off-by: Andreas Rheinhardt <andreas.rheinhardt@outlook.com>
Diffstat (limited to 'libavcodec')
-rw-r--r-- | libavcodec/vc2enc.c | 4 |
1 files changed, 1 insertions, 3 deletions
diff --git a/libavcodec/vc2enc.c b/libavcodec/vc2enc.c index 4dcf423ef1..f39f368181 100644 --- a/libavcodec/vc2enc.c +++ b/libavcodec/vc2enc.c @@ -918,10 +918,8 @@ static int encode_frame(VC2EncContext *s, AVPacket *avpkt, const AVFrame *frame, if (field < 2) { ret = ff_get_encode_buffer(s->avctx, avpkt, max_frame_bytes << s->interlaced, 0); - if (ret) { - av_log(s->avctx, AV_LOG_ERROR, "Error getting output packet.\n"); + if (ret < 0) return ret; - } init_put_bits(&s->pb, avpkt->data, avpkt->size); } |