mirror of
https://github.com/librempeg/librempeg
synced 2024-11-22 18:49:58 +00:00
lavfi/vf_ssim360: use av_err2str to simplify code
No need to explicitly specify the buffer here as it is only ever passed to av_log, so av_err2str can be used. Signed-off-by: Paul B Mahol <onemda@gmail.com>
This commit is contained in:
parent
fd61e101b5
commit
214f0b315c
@ -1320,12 +1320,9 @@ static av_cold int init(AVFilterContext *ctx)
|
||||
} else {
|
||||
s->stats_file = avpriv_fopen_utf8(s->stats_file_str, "w");
|
||||
if (!s->stats_file) {
|
||||
char buf[128];
|
||||
|
||||
err = AVERROR(errno);
|
||||
av_strerror(err, buf, sizeof(buf));
|
||||
av_log(ctx, AV_LOG_ERROR, "Could not open stats file %s: %s\n",
|
||||
s->stats_file_str, buf);
|
||||
s->stats_file_str, av_err2str(err));
|
||||
return err;
|
||||
}
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user