You've already forked FFmpeg
mirror of
https://github.com/FFmpeg/FFmpeg.git
synced 2025-08-10 06:10:52 +02:00
avcodec/dvdsubdec: Avoid strerror() due to thread saftey
Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
This commit is contained in:
@@ -597,7 +597,7 @@ static int parse_ifo_palette(DVDSubContext *ctx, char *p)
|
|||||||
|
|
||||||
ctx->has_palette = 0;
|
ctx->has_palette = 0;
|
||||||
if ((ifo = fopen(p, "r")) == NULL) {
|
if ((ifo = fopen(p, "r")) == NULL) {
|
||||||
av_log(ctx, AV_LOG_WARNING, "Unable to open IFO file \"%s\": %s\n", p, strerror(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;
|
||||||
}
|
}
|
||||||
if (fread(ifostr, 12, 1, ifo) != 1 || memcmp(ifostr, "DVDVIDEO-VTS", 12)) {
|
if (fread(ifostr, 12, 1, ifo) != 1 || memcmp(ifostr, "DVDVIDEO-VTS", 12)) {
|
||||||
|
Reference in New Issue
Block a user