Skip to content

Commit 1a0a2b7

Browse files
author
zyan3
committed
fix c++ lint
1 parent 6eda874 commit 1a0a2b7

File tree

2 files changed

+20
-21
lines changed

2 files changed

+20
-21
lines changed

torchvision/csrc/cpu/video_reader/Interface.h

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -48,7 +48,7 @@ struct VideoFormat {
4848
int timeBaseNum{0};
4949
int timeBaseDen{1}; // numerator and denominator of time base
5050
float fps{0.0};
51-
int64_t duration{0}; // duration of the stream, in stream time base
51+
int64_t duration{0}; // duration of the stream, in stream time base
5252
};
5353

5454
struct AudioFormat {
@@ -61,7 +61,7 @@ struct AudioFormat {
6161
int64_t startPts{0}, endPts{0}; // Start and end presentation timestamp
6262
int timeBaseNum{0};
6363
int timeBaseDen{1}; // numerator and denominator of time base
64-
int64_t duration{0}; // duration of the stream, in stream time base
64+
int64_t duration{0}; // duration of the stream, in stream time base
6565
};
6666

6767
union FormatUnion {

torchvision/csrc/cpu/video_reader/VideoReader.cpp

Lines changed: 18 additions & 19 deletions
Original file line numberDiff line numberDiff line change
@@ -387,26 +387,25 @@ torch::List<torch::Tensor> readVideoFromFile(
387387
torch::List<torch::Tensor> probeVideo(
388388
bool isReadFile,
389389
const torch::Tensor& input_video,
390-
std::string videoPath)
391-
{
390+
std::string videoPath) {
392391
unique_ptr<DecoderParameters> params = util::getDecoderParams(
393-
0, // seekFrameMargin
394-
0, // getPtsOnly
395-
1, // readVideoStream
396-
0, // width
397-
0, // height
398-
0, // minDimension
399-
0, // videoStartPts
400-
0, // videoEndPts
401-
0, // videoTimeBaseNum
402-
1, // videoTimeBaseDen
403-
1, // readAudioStream
404-
0, // audioSamples
405-
0, // audioChannels
406-
0, // audioStartPts
407-
0, // audioEndPts
408-
0, // audioTimeBaseNum
409-
1 //audioTimeBaseDen
392+
0, // seekFrameMargin
393+
0, // getPtsOnly
394+
1, // readVideoStream
395+
0, // width
396+
0, // height
397+
0, // minDimension
398+
0, // videoStartPts
399+
0, // videoEndPts
400+
0, // videoTimeBaseNum
401+
1, // videoTimeBaseDen
402+
1, // readAudioStream
403+
0, // audioSamples
404+
0, // audioChannels
405+
0, // audioStartPts
406+
0, // audioEndPts
407+
0, // audioTimeBaseNum
408+
1 // audioTimeBaseDen
410409
);
411410

412411
FfmpegDecoder decoder;

0 commit comments

Comments
 (0)