ffmpeg | branch: release/6.1 | Michael Niedermayer <mich...@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 <mich...@niedermayer.cc>
(cherry picked from commit bf1159774b94ffcf1049f1def23db5d7cf46a433)
Signed-off-by: Michael Niedermayer <mich...@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;
             }
 

_______________________________________________
ffmpeg-cvslog mailing list
ffmpeg-cvslog@ffmpeg.org
https://ffmpeg.org/mailman/listinfo/ffmpeg-cvslog

To unsubscribe, visit link above, or email
ffmpeg-cvslog-requ...@ffmpeg.org with subject "unsubscribe".

Reply via email to