Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 1 addition & 3 deletions torchvision/csrc/io/decoder/gpu/demuxer.h
Original file line number Diff line number Diff line change
Expand Up @@ -15,11 +15,10 @@ class Demuxer {
bool bMp4H264, bMp4HEVC, bMp4MPEG4;
unsigned int frameCount = 0;
int iVideoStream;
int64_t userTimeScale = 0;
double timeBase = 0.0;

public:
Demuxer(const char* filePath, int64_t timeScale = 1000 /*Hz*/) {
Demuxer(const char* filePath) {
avformat_network_init();
TORCH_CHECK(
0 <= avformat_open_input(&fmtCtx, filePath, NULL, NULL),
Expand Down Expand Up @@ -52,7 +51,6 @@ class Demuxer {
eVideoCodec = fmtCtx->streams[iVideoStream]->codecpar->codec_id;
AVRational rTimeBase = fmtCtx->streams[iVideoStream]->time_base;
timeBase = av_q2d(rTimeBase);
userTimeScale = timeScale;

bMp4H264 = eVideoCodec == AV_CODEC_ID_H264 &&
(!strcmp(fmtCtx->iformat->long_name, "QuickTime / MOV") ||
Expand Down