Skip to content

Commit 6b32ad5

Browse files
softworkzmstorsjo
authored andcommitted
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 <[email protected]> Signed-off-by: Martin Storsjö <[email protected]>
1 parent f579a1d commit 6b32ad5

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

libavcodec/dvdsubdec.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -617,7 +617,7 @@ static int parse_ifo_palette(DVDSubContext *ctx, char *p)
617617
const uint8_t *cm = ff_crop_tab + MAX_NEG_CROP;
618618

619619
ctx->has_palette = 0;
620-
if ((ifo = fopen(p, "r")) == NULL) {
620+
if ((ifo = avpriv_fopen_utf8(p, "r")) == NULL) {
621621
av_log(ctx, AV_LOG_WARNING, "Unable to open IFO file \"%s\": %s\n", p, av_err2str(AVERROR(errno)));
622622
return AVERROR_EOF;
623623
}

0 commit comments

Comments
 (0)