matroskadec_haali: added an option to suppress opening external segments
This commit is contained in:
parent
a33ac8b9ea
commit
e39c5d5c9e
|
@ -1430,6 +1430,7 @@ typedef struct AVFormatContext {
|
|||
#endif
|
||||
#define AVFMT_FLAG_AUTO_BSF 0x200000 ///< Add bitstream filters as requested by the muxer
|
||||
|
||||
#define AVFMT_FLAG_NOEXTERNAL 0x40000000 ///< Do not open external files referenced by the format
|
||||
#define AVFMT_FLAG_NETWORK 0x80000000 ///< Source is a network protocol, optimize for that
|
||||
|
||||
/**
|
||||
|
|
|
@ -409,8 +409,9 @@ static MatroskaSegment* mkv_get_segment(AVFormatContext *s, char uid[16])
|
|||
ulonglong base = mkv_GetSegmentTop(ctx->segments[0]->matroska);
|
||||
mkv_find_segments_avio(s, ctx->segments[0]->iostream->pb, base);
|
||||
|
||||
/* and for segments in other files */
|
||||
mkv_find_segments(s);
|
||||
/* and for segments in other files, if allowed */
|
||||
if (!(s->flags & AVFMT_FLAG_NOEXTERNAL))
|
||||
mkv_find_segments(s);
|
||||
ctx->segments_scanned = 1;
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in New Issue