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 cd514a1 commit ea8ffb5Copy full SHA for ea8ffb5
src/FFmpegReader.cpp
@@ -1180,6 +1180,9 @@ bool FFmpegReader::GetAVFrame() {
1180
// This is the current decoded frame (and should be the pts used) for
1181
// processing this data
1182
video_pts = next_frame->pts;
1183
+ } else if (next_frame->pkt_dts != AV_NOPTS_VALUE) {
1184
+ // Some videos only set this timestamp (fallback)
1185
+ video_pts = next_frame->pkt_dts;
1186
}
1187
1188
// break out of loop after each successful image returned
0 commit comments