Skip to content

Commit 871e5a7

Browse files
Dan-FloresDaniel Flores
andauthored
Resolve lint in VideoEncoder by setting avStream_ (#981)
Co-authored-by: Daniel Flores <[email protected]>
1 parent c1798db commit 871e5a7

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/torchcodec/_core/Encoder.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -162,7 +162,7 @@ class VideoEncoder {
162162

163163
UniqueEncodingAVFormatContext avFormatContext_;
164164
UniqueAVCodecContext avCodecContext_;
165-
AVStream* avStream_;
165+
AVStream* avStream_ = nullptr;
166166
UniqueSwsContext swsContext_;
167167

168168
const torch::Tensor frames_;

0 commit comments

Comments
 (0)