ffmpeg | branch: master | Marvin Scholz <epira...@gmail.com> | Wed Apr 2 01:40:02 2025 +0200| [da38b2fcd2296a6b3474110d1dc6694d02300921] | committer: Marvin Scholz
tools/sidxindex: use av_err2str There is no need to explicitly specify the buffer, as it is only ever passed to fprintf, so av_err2str can be used. > http://git.videolan.org/gitweb.cgi/ffmpeg.git/?a=commit;h=da38b2fcd2296a6b3474110d1dc6694d02300921 --- tools/sidxindex.c | 8 +++----- 1 file changed, 3 insertions(+), 5 deletions(-) diff --git a/tools/sidxindex.c b/tools/sidxindex.c index 3e43d95e02..96b1fce8c4 100644 --- a/tools/sidxindex.c +++ b/tools/sidxindex.c @@ -119,20 +119,18 @@ static int handle_file(struct Tracks *tracks, const char *file) { AVFormatContext *ctx = NULL; int err = 0, i, orig_tracks = tracks->nb_tracks; - char errbuf[50], *ptr; + char *ptr; struct Track *track; err = avformat_open_input(&ctx, file, NULL, NULL); if (err < 0) { - av_strerror(err, errbuf, sizeof(errbuf)); - fprintf(stderr, "Unable to open %s: %s\n", file, errbuf); + fprintf(stderr, "Unable to open %s: %s\n", file, av_err2str(err)); return 1; } err = avformat_find_stream_info(ctx, NULL); if (err < 0) { - av_strerror(err, errbuf, sizeof(errbuf)); - fprintf(stderr, "Unable to identify %s: %s\n", file, errbuf); + fprintf(stderr, "Unable to identify %s: %s\n", file, av_err2str(err)); goto fail; } _______________________________________________ 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".