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

Michael Niedermayer git at videolan.org
Fri Dec 29 23:44:01 EET 2023


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

avcodec/vaapi_encode: Avoid double AVERRORS

Signed-off-by: Michael Niedermayer <michael at niedermayer.cc>

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

 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;
             }
 



More information about the ffmpeg-cvslog mailing list