mirror of
https://git.ffmpeg.org/ffmpeg.git
synced 2025-12-05 14:30:00 +01:00
lavfi/vf_xpsnr: 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:
@@ -506,10 +506,9 @@ static av_cold int init(AVFilterContext *ctx)
|
|||||||
|
|
||||||
if (!s->stats_file) {
|
if (!s->stats_file) {
|
||||||
const int err = AVERROR(errno);
|
const int err = AVERROR(errno);
|
||||||
char buf[128];
|
|
||||||
|
|
||||||
av_strerror(err, buf, sizeof(buf));
|
av_log(ctx, AV_LOG_ERROR, "Could not open statistics file %s: %s\n",
|
||||||
av_log(ctx, AV_LOG_ERROR, "Could not open statistics file %s: %s\n", s->stats_file_str, buf);
|
s->stats_file_str, av_err2str(err));
|
||||||
return err;
|
return err;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user