[FFmpeg-devel] [PATCH 2/2] doc/examples/qsv_decode: use av_err2str
Tristan Matthews
tmatth at videolan.org
Thu May 22 19:57:25 EEST 2025
---
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);
--
2.45.2
More information about the ffmpeg-devel
mailing list