File tree Expand file tree Collapse file tree 2 files changed +5
-5
lines changed
src/torchcodec/decoders/_core Expand file tree Collapse file tree 2 files changed +5
-5
lines changed Original file line number Diff line number Diff line change @@ -1600,10 +1600,10 @@ FrameDims getHeightAndWidthFromResizedAVFrame(const AVFrame& resizedAVFrame) {
16001600
16011601FrameDims getHeightAndWidthFromOptionsOrMetadata (
16021602 const VideoDecoder::VideoStreamDecoderOptions& options,
1603- const VideoDecoder::StreamMetadata& metadata ) {
1603+ const VideoDecoder::StreamMetadata& streamMetadata ) {
16041604 return FrameDims (
1605- options.height .value_or (*metadata .height ),
1606- options.width .value_or (*metadata .width ));
1605+ options.height .value_or (*streamMetadata .height ),
1606+ options.width .value_or (*streamMetadata .width ));
16071607}
16081608
16091609FrameDims getHeightAndWidthFromOptionsOrAVFrame (
Original file line number Diff line number Diff line change @@ -215,7 +215,7 @@ class VideoDecoder {
215215 explicit BatchDecodedOutput (
216216 int64_t numFrames,
217217 const VideoStreamDecoderOptions& options,
218- const StreamMetadata& metadata );
218+ const StreamMetadata& streamMetadata );
219219 };
220220
221221 // Returns frames at the given indices for a given stream as a single stacked
@@ -489,7 +489,7 @@ FrameDims getHeightAndWidthFromResizedAVFrame(const AVFrame& resizedAVFrame);
489489
490490FrameDims getHeightAndWidthFromOptionsOrMetadata (
491491 const VideoDecoder::VideoStreamDecoderOptions& options,
492- const VideoDecoder::StreamMetadata& metadata );
492+ const VideoDecoder::StreamMetadata& streamMetadata );
493493
494494FrameDims getHeightAndWidthFromOptionsOrAVFrame (
495495 const VideoDecoder::VideoStreamDecoderOptions& options,
You can’t perform that action at this time.
0 commit comments