[FFmpeg-cvslog] avcodec/vaapi_encode: Avoid double AVERRORS

Michael Niedermayer git at videolan.org
Sat Dec 30 01:44:22 EET 2023


ffmpeg | branch: release/6.1 | Michael Niedermayer <michael at niedermayer.cc> | Mon Oct  2 16:09:31 2023 +0200| [2b403b88fcec6c002b8e2bb2eaee34b6113790f9] | committer: Michael Niedermayer

avcodec/vaapi_encode: Avoid double AVERRORS

Signed-off-by: Michael Niedermayer <michael at niedermayer.cc>
(cherry picked from commit bf1159774b94ffcf1049f1def23db5d7cf46a433)
Signed-off-by: Michael Niedermayer <michael at niedermayer.cc>

> http://git.videolan.org/gitweb.cgi/ffmpeg.git/?a=commit;h=2b403b88fcec6c002b8e2bb2eaee34b6113790f9
---

 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 e3820956d1..6c3e41fb31 100644
--- a/libavcodec/vaapi_encode.c
+++ b/libavcodec/vaapi_encode.c
@@ -834,7 +834,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;
             }
 



More information about the ffmpeg-cvslog mailing list