You've already forked libopenshot
mirror of
https://github.com/OpenShot/libopenshot.git
synced 2026-03-02 08:53:52 -08:00
Add fallback for AVFrame.pkt_dts, which is only used on certain codecs (AV1)
This commit is contained in:
@@ -1180,6 +1180,9 @@ bool FFmpegReader::GetAVFrame() {
|
||||
// This is the current decoded frame (and should be the pts used) for
|
||||
// processing this data
|
||||
video_pts = next_frame->pts;
|
||||
} else if (next_frame->pkt_dts != AV_NOPTS_VALUE) {
|
||||
// Some videos only set this timestamp (fallback)
|
||||
video_pts = next_frame->pkt_dts;
|
||||
}
|
||||
|
||||
// break out of loop after each successful image returned
|
||||
|
||||
Reference in New Issue
Block a user