blob: eb2b21a45ec8f5a663203403e7961d268957c571 (
plain) (
blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
|
#pragma once
#include "../nsmkv/header.h"
#include "../nsmkv/segmentinfo.h"
// parses only enough information to determine the file duration
class MKVDuration
{
public:
MKVDuration();
bool Open(const wchar_t *filename);
int GetLengthMilliseconds();
const char *GetTitle();
int GetBitrate();
private:
uint64_t ReadSegment(nsmkv::MKVReader *reader, uint64_t size);
bool segment_info_found;
nsmkv::Header header;
nsmkv::SegmentInfo segment_info;
uint64_t content_length;
};
|