File tree Expand file tree Collapse file tree 2 files changed +3
-1
lines changed
Expand file tree Collapse file tree 2 files changed +3
-1
lines changed Original file line number Diff line number Diff line change @@ -189,10 +189,11 @@ void CudaDeviceInterface::initialize(
189189 AVCodecContext* codecContext,
190190 [[maybe_unused]] const VideoStreamOptions& videoStreamOptions,
191191 [[maybe_unused]] const std::vector<std::unique_ptr<Transform>>& transforms,
192- [[maybe_unused]] const AVRational& timeBase,
192+ const AVRational& timeBase,
193193 const FrameDims& outputDims) {
194194 TORCH_CHECK (!ctx_, " FFmpeg HW device context already initialized" );
195195
196+ timeBase_ = timeBase;
196197 outputDims_ = outputDims;
197198
198199 // It is important for pytorch itself to create the cuda context. If ffmpeg
Original file line number Diff line number Diff line change @@ -34,6 +34,7 @@ class CudaDeviceInterface : public DeviceInterface {
3434 std::nullopt ) override ;
3535
3636 private:
37+ AVRational timeBase_;
3738 FrameDims outputDims_;
3839 UniqueAVBufferRef ctx_;
3940 std::unique_ptr<NppStreamContext> nppCtx_;
You can’t perform that action at this time.
0 commit comments