> > + if (av_sscanf(line, "%d:%d:%d:%d", &hh, &mm, &ss, &fs) != 4) > + continue; > Maybe worth a comment saying you're converting a timecode to a PTS here. These are often not the same. Kieran