mirror of
https://github.com/librempeg/librempeg
synced 2024-11-22 18:49:58 +00:00
avfilter/vf_fieldhint: use av_fopen_utf8()
This commit is contained in:
parent
a2c0746344
commit
5452d0372c
@ -65,7 +65,7 @@ static av_cold int init(AVFilterContext *ctx)
|
|||||||
av_log(ctx, AV_LOG_ERROR, "Hint file must be set.\n");
|
av_log(ctx, AV_LOG_ERROR, "Hint file must be set.\n");
|
||||||
return AVERROR(EINVAL);
|
return AVERROR(EINVAL);
|
||||||
}
|
}
|
||||||
s->hint = fopen(s->hint_file_str, "r");
|
s->hint = av_fopen_utf8(s->hint_file_str, "r");
|
||||||
if (!s->hint) {
|
if (!s->hint) {
|
||||||
ret = AVERROR(errno);
|
ret = AVERROR(errno);
|
||||||
av_log(ctx, AV_LOG_ERROR, "%s: %s\n", s->hint_file_str, av_err2str(ret));
|
av_log(ctx, AV_LOG_ERROR, "%s: %s\n", s->hint_file_str, av_err2str(ret));
|
||||||
|
Loading…
Reference in New Issue
Block a user