mirror of
https://github.com/simon987/libscan.git
synced 2025-12-14 15:09:01 +00:00
Read subtitles from media files, fix bug in text_buffer
This commit is contained in:
@@ -357,8 +357,13 @@ void parse_media_format_ctx(scan_media_ctx_t *ctx, AVFormatContext *pFormatCtx,
|
||||
}
|
||||
}
|
||||
|
||||
if (subtitle_stream != -1) {
|
||||
if (subtitle_stream != -1 && ctx->read_subtitles) {
|
||||
read_subtitles(ctx, pFormatCtx, subtitle_stream, doc);
|
||||
|
||||
// Reset stream
|
||||
if (video_stream != -1) {
|
||||
av_seek_frame(pFormatCtx, video_stream, 0, 0);
|
||||
}
|
||||
}
|
||||
|
||||
if (video_stream != -1 && ctx->tn_size > 0) {
|
||||
|
||||
2
third-party/utf8.h
vendored
2
third-party/utf8.h
vendored
Submodule third-party/utf8.h updated: 42f5b90d44...ee5a7d4beb
Reference in New Issue
Block a user