Skip to content

Commit d4146ef

Browse files
authored
Remove unused member variable and argument (#5499)
1 parent c50d488 commit d4146ef

File tree

1 file changed

+1
-3
lines changed

1 file changed

+1
-3
lines changed

torchvision/csrc/io/decoder/gpu/demuxer.h

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -15,11 +15,10 @@ class Demuxer {
1515
bool bMp4H264, bMp4HEVC, bMp4MPEG4;
1616
unsigned int frameCount = 0;
1717
int iVideoStream;
18-
int64_t userTimeScale = 0;
1918
double timeBase = 0.0;
2019

2120
public:
22-
Demuxer(const char* filePath, int64_t timeScale = 1000 /*Hz*/) {
21+
Demuxer(const char* filePath) {
2322
avformat_network_init();
2423
TORCH_CHECK(
2524
0 <= avformat_open_input(&fmtCtx, filePath, NULL, NULL),
@@ -52,7 +51,6 @@ class Demuxer {
5251
eVideoCodec = fmtCtx->streams[iVideoStream]->codecpar->codec_id;
5352
AVRational rTimeBase = fmtCtx->streams[iVideoStream]->time_base;
5453
timeBase = av_q2d(rTimeBase);
55-
userTimeScale = timeScale;
5654

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

0 commit comments

Comments
 (0)