1
0
mirror of https://github.com/FFmpeg/FFmpeg.git synced 2025-08-10 06:10:52 +02:00

doc/examples/qsv_decode: use av_err2str

Signed-off-by: Marvin Scholz <epirat07@gmail.com>
This commit is contained in:
Tristan Matthews
2025-05-22 12:57:25 -04:00
committed by Marvin Scholz
parent e93a43b511
commit 9b9a287872

View File

@@ -219,11 +219,8 @@ int main(int argc, char **argv)
ret = decode_packet(decoder_ctx, frame, sw_frame, NULL, output_ctx); ret = decode_packet(decoder_ctx, frame, sw_frame, NULL, output_ctx);
finish: finish:
if (ret < 0) { if (ret < 0)
char buf[1024]; fprintf(stderr, "%s\n", av_err2str(ret));
av_strerror(ret, buf, sizeof(buf));
fprintf(stderr, "%s\n", buf);
}
avformat_close_input(&input_ctx); avformat_close_input(&input_ctx);