aboutsummaryrefslogtreecommitdiffstats
path: root/doc/examples/qsv_decode.c
diff options
context:
space:
mode:
authorTristan Matthews <tmatth@videolan.org>2025-05-22 12:57:25 -0400
committerMarvin Scholz <epirat07@gmail.com>2025-05-22 22:26:30 +0200
commit9b9a287872c1ecc651a29f08854b68f25be65daf (patch)
tree846a4467bb343d9b6827ec492fe2bb243c9129d2 /doc/examples/qsv_decode.c
parente93a43b5113c0b8d6357c5b6ed26ffff22cf028d (diff)
downloadffmpeg-9b9a287872c1ecc651a29f08854b68f25be65daf.tar.gz
doc/examples/qsv_decode: use av_err2str
Signed-off-by: Marvin Scholz <epirat07@gmail.com>
Diffstat (limited to 'doc/examples/qsv_decode.c')
-rw-r--r--doc/examples/qsv_decode.c7
1 files 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);