diff options
author | Marvin Scholz <epirat07@gmail.com> | 2025-04-02 01:23:57 +0200 |
---|---|---|
committer | Marvin Scholz <epirat07@gmail.com> | 2025-04-22 20:45:57 +0200 |
commit | cd96d2ed6a0b407c52ebaa06b5094254749354ca (patch) | |
tree | 415325401ea96fc27eb2b28815b2bbb873af23f1 /libavformat/crypto.c | |
parent | 8129474b93a589e38aa4c2db05713738e9d92f68 (diff) | |
download | ffmpeg-cd96d2ed6a0b407c52ebaa06b5094254749354ca.tar.gz |
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.
Diffstat (limited to 'libavformat/crypto.c')
-rw-r--r-- | libavformat/crypto.c | 4 |
1 files changed, 1 insertions, 3 deletions
diff --git a/libavformat/crypto.c b/libavformat/crypto.c index 868f6ddc25..da8aa0f0ec 100644 --- a/libavformat/crypto.c +++ b/libavformat/crypto.c @@ -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); } } |