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

avformat/crypto: use av_err2str

There is no need to explicitly specify the buffer, as it
is only ever passed to av_log, so av_err2str can be used.
This commit is contained in:
Marvin Scholz
2025-04-02 01:23:57 +02:00
parent 8129474b93
commit cd96d2ed6a

View File

@@ -313,11 +313,9 @@ static int64_t crypto_seek(URLContext *h, int64_t pos, int whence)
// if we did not get all the bytes
if (len != 0) {
char errbuf[100] = "unknown error";
av_strerror(res, errbuf, sizeof(errbuf));
av_log(h, AV_LOG_ERROR,
"Crypto: discard read did not get all the bytes (%d remain) - read returned (%d)-%s\n",
len, res, errbuf);
len, res, av_err2str(res));
return AVERROR(EINVAL);
}
}