Skip to content

Commit 85569fb

Browse files
committed
metadata names
1 parent c629073 commit 85569fb

File tree

2 files changed

+5
-5
lines changed

2 files changed

+5
-5
lines changed

src/torchcodec/decoders/_core/VideoDecoder.cpp

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1600,10 +1600,10 @@ FrameDims getHeightAndWidthFromResizedAVFrame(const AVFrame& resizedAVFrame) {
16001600

16011601
FrameDims 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

16091609
FrameDims getHeightAndWidthFromOptionsOrAVFrame(

src/torchcodec/decoders/_core/VideoDecoder.h

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff 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

490490
FrameDims getHeightAndWidthFromOptionsOrMetadata(
491491
const VideoDecoder::VideoStreamDecoderOptions& options,
492-
const VideoDecoder::StreamMetadata& metadata);
492+
const VideoDecoder::StreamMetadata& streamMetadata);
493493

494494
FrameDims getHeightAndWidthFromOptionsOrAVFrame(
495495
const VideoDecoder::VideoStreamDecoderOptions& options,

0 commit comments

Comments
 (0)