Skip to content

Commit abad57b

Browse files
committed
FrameInfo struct initialization
1 parent 4574e95 commit abad57b

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/torchcodec/decoders/_core/VideoDecoder.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -603,7 +603,7 @@ void VideoDecoder::scanFileAndUpdateMetadataAndIndex() {
603603

604604
// Note that we set the other value in this struct, nextPts, only after
605605
// we have scanned all packets and sorted by pts.
606-
FrameInfo frameInfo = {.pts = packet->pts};
606+
FrameInfo frameInfo = {packet->pts};
607607
if (packet->flags & AV_PKT_FLAG_KEY) {
608608
streams_[streamIndex].keyFrames.push_back(frameInfo);
609609
}

0 commit comments

Comments
 (0)