Finishing the font extractor

This commit is contained in:
Zoe Roux
2020-10-29 23:08:22 +01:00
parent 8a199d664f
commit 10cc69a261

View File

@@ -92,7 +92,7 @@ void extract_font(stream *font, const char *out_path, AVStream *stream)
if (count > 0)
font->title = strndup(filename->value, count);
int fd = open(font->path, O_WRONLY | O_CREAT);
int fd = open(font->path, O_WRONLY | O_CREAT, 0744);
if (fd == -1)
return perror("Kyoo couldn't extract a subtitle's font");
write(fd, stream->codecpar->extradata, stream->codecpar->extradata_size);