We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 4574e95 commit abad57bCopy full SHA for abad57b
src/torchcodec/decoders/_core/VideoDecoder.cpp
@@ -603,7 +603,7 @@ void VideoDecoder::scanFileAndUpdateMetadataAndIndex() {
603
604
// Note that we set the other value in this struct, nextPts, only after
605
// we have scanned all packets and sorted by pts.
606
- FrameInfo frameInfo = {.pts = packet->pts};
+ FrameInfo frameInfo = {packet->pts};
607
if (packet->flags & AV_PKT_FLAG_KEY) {
608
streams_[streamIndex].keyFrames.push_back(frameInfo);
609
}
0 commit comments