You've already forked FFmpeg
mirror of
https://github.com/FFmpeg/FFmpeg.git
synced 2025-08-15 14:13:16 +02:00
avcodec/dvdsubdec: use avpriv_fopen_utf8() instead of plain fopen()
Unify file access operations by replacing usages of direct calls to posix fopen() to prepare for long filename support on Windows. Signed-off-by: softworkz <softworkz@hotmail.com> Signed-off-by: Martin Storsjö <martin@martin.st>
This commit is contained in:
committed by
Martin Storsjö
parent
f579a1d08b
commit
6b32ad59c8
@@ -617,7 +617,7 @@ static int parse_ifo_palette(DVDSubContext *ctx, char *p)
|
|||||||
const uint8_t *cm = ff_crop_tab + MAX_NEG_CROP;
|
const uint8_t *cm = ff_crop_tab + MAX_NEG_CROP;
|
||||||
|
|
||||||
ctx->has_palette = 0;
|
ctx->has_palette = 0;
|
||||||
if ((ifo = fopen(p, "r")) == NULL) {
|
if ((ifo = avpriv_fopen_utf8(p, "r")) == NULL) {
|
||||||
av_log(ctx, AV_LOG_WARNING, "Unable to open IFO file \"%s\": %s\n", p, av_err2str(AVERROR(errno)));
|
av_log(ctx, AV_LOG_WARNING, "Unable to open IFO file \"%s\": %s\n", p, av_err2str(AVERROR(errno)));
|
||||||
return AVERROR_EOF;
|
return AVERROR_EOF;
|
||||||
}
|
}
|
||||||
|
Reference in New Issue
Block a user