Skip to content

Commit 38a81e5

Browse files
author
Daniel Flores
committed
set to nullptr
1 parent c1798db commit 38a81e5

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)