History

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.

Marvin Scholz committed 1 year ago

Commit cd96d2e1 parent 81294741 file · +1 −3Browse files

Unified · Split

libavformat/crypto.c+1−3
@@ -313,11 +313,9 @@ static int64_t crypto_seek(URLContext *h, int64_t pos, int whence) · 312 unmodified lines
313313
314314 // if we did not get all the bytes
315315 if (len != 0) {
316− char errbuf[100] = "unknown error";
317− av_strerror(res, errbuf, sizeof(errbuf));
318316 av_log(h, AV_LOG_ERROR,
319317 "Crypto: discard read did not get all the bytes (%d remain) - read returned (%d)-%s\n",
320− len, res, errbuf);
318+ len, res, av_err2str(res));
321319 return AVERROR(EINVAL);
322320 }
323321 }

Keyboard shortcuts

General

Show keyboard shortcuts
?
Focus the current search
/

Issues and pull requests

Open filters
f

Issues, pull requests and Inbox

Select next item
j↓
Select previous item
k↑
Open selected item
Enter
Dismiss filters or clear selection
Esc

Repository code

Go to file
t