On the one hand, it insufficiently checks whether it only updates a dummy
segment. On the other hand, only doing this at the time the last sampled is
prepared (and sent downstream) is too little too late.
*duration = QTSAMPLE_DUR_PTS (stream, sample, *timestamp);
*keyframe = QTSAMPLE_KEYFRAME (stream, sample);
- /* update dummy segment duration */
- if (stream->sample_index == stream->n_samples - 1 && stream->n_segments == 1) {
- stream->segments[0].duration = stream->segments[0].stop_time =
- stream->segments[0].media_stop = *timestamp + *duration;
- }
-
return TRUE;
/* special cases */