1
0
Fork 0

matroskadec_haali: added an option to suppress opening external segments

This commit is contained in:
Hendrik Leppkes 2013-04-06 18:04:50 +02:00
parent a33ac8b9ea
commit e39c5d5c9e
Signed by: hendrik
GPG Key ID: 846079A4B0A7C1B5
2 changed files with 4 additions and 2 deletions

View File

@ -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
/**

View File

@ -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;
}