From b49eb3bffa85907d7693efcc00e4f5366cbb58df Mon Sep 17 00:00:00 2001 From: Zoe Roux Date: Wed, 21 Aug 2024 22:48:44 +0200 Subject: [PATCH] Add N/A note on packets_nbr > frames_nbr files --- transcoder/src/keyframes.go | 2 ++ 1 file changed, 2 insertions(+) diff --git a/transcoder/src/keyframes.go b/transcoder/src/keyframes.go index 2b3ade5a..6e16d6a6 100644 --- a/transcoder/src/keyframes.go +++ b/transcoder/src/keyframes.go @@ -191,6 +191,8 @@ func getVideoKeyframes(path string, video_idx uint32, kf *Keyframe) error { pts, flags := x[0], x[1] // true if there is no keyframes (e.g. in a file w/o video track) + // can also happen if a video has more packets than frames (so the last packet + // is emtpy and has a N/A pts) if pts == "N/A" { break }