From bf1159774b94ffcf1049f1def23db5d7cf46a433 Mon Sep 17 00:00:00 2001 From: Michael Niedermayer Date: Mon, 2 Oct 2023 16:09:31 +0200 Subject: [PATCH] avcodec/vaapi_encode: Avoid double AVERRORS Signed-off-by: Michael Niedermayer --- libavcodec/vaapi_encode.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/libavcodec/vaapi_encode.c b/libavcodec/vaapi_encode.c index b2f3059643..86f4110cd2 100644 --- a/libavcodec/vaapi_encode.c +++ b/libavcodec/vaapi_encode.c @@ -833,7 +833,7 @@ static int vaapi_encode_output(AVCodecContext *avctx, if (pic->tail_size) { if (ctx->tail_pkt->size) { - err = AVERROR(AVERROR_BUG); + err = AVERROR_BUG; goto end; }