Skip to content
GitLab
Menu
Projects
Groups
Snippets
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
Menu
Open sidebar
OpenDAS
vision
Commits
d4146ef1
Unverified
Commit
d4146ef1
authored
Mar 01, 2022
by
Prabhat Roy
Committed by
GitHub
Mar 01, 2022
Browse files
Remove unused member variable and argument (#5499)
parent
c50d4884
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
1 addition
and
3 deletions
+1
-3
torchvision/csrc/io/decoder/gpu/demuxer.h
torchvision/csrc/io/decoder/gpu/demuxer.h
+1
-3
No files found.
torchvision/csrc/io/decoder/gpu/demuxer.h
View file @
d4146ef1
...
...
@@ -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
),
...
...
@@ -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"
)
||
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment