[FFmpeg-cvslog] doc/examples/qsv_decode: use av_err2str

Tristan Matthews git at videolan.org
Thu May 22 23:27:24 EEST 2025


ffmpeg | branch: master | Tristan Matthews <tmatth at videolan.org> | Thu May 22 12:57:25 2025 -0400| [9b9a287872c1ecc651a29f08854b68f25be65daf] | committer: Marvin Scholz

doc/examples/qsv_decode: use av_err2str

Signed-off-by: Marvin Scholz <epirat07 at gmail.com>

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

 doc/examples/qsv_decode.c | 7 ++-----
 1 file changed, 2 insertions(+), 5 deletions(-)

diff --git a/doc/examples/qsv_decode.c b/doc/examples/qsv_decode.c
index 5a6f3625aa..ec91109480 100644
--- a/doc/examples/qsv_decode.c
+++ b/doc/examples/qsv_decode.c
@@ -219,11 +219,8 @@ int main(int argc, char **argv)
     ret = decode_packet(decoder_ctx, frame, sw_frame, NULL, output_ctx);
 
 finish:
-    if (ret < 0) {
-        char buf[1024];
-        av_strerror(ret, buf, sizeof(buf));
-        fprintf(stderr, "%s\n", buf);
-    }
+    if (ret < 0)
+        fprintf(stderr, "%s\n", av_err2str(ret));
 
     avformat_close_input(&input_ctx);
 



More information about the ffmpeg-cvslog mailing list