Now they are exactly 10 seconds long. Fixes #5684.
Signed-off-by: Paul B Mahol <one...@gmail.com> --- doc/examples/muxing.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/doc/examples/muxing.c b/doc/examples/muxing.c index 08da98e574..9af9aae483 100644 --- a/doc/examples/muxing.c +++ b/doc/examples/muxing.c @@ -285,7 +285,7 @@ static AVFrame *get_audio_frame(OutputStream *ost) /* check if we want to generate more frames */ if (av_compare_ts(ost->next_pts, ost->enc->time_base, - STREAM_DURATION, (AVRational){ 1, 1 }) >= 0) + STREAM_DURATION, (AVRational){ 1, 1 }) > 0) return NULL; for (j = 0; j <frame->nb_samples; j++) { @@ -464,7 +464,7 @@ static AVFrame *get_video_frame(OutputStream *ost) /* check if we want to generate more frames */ if (av_compare_ts(ost->next_pts, c->time_base, - STREAM_DURATION, (AVRational){ 1, 1 }) >= 0) + STREAM_DURATION, (AVRational){ 1, 1 }) > 0) return NULL; /* when we pass a frame to the encoder, it may keep a reference to it -- 2.17.1 _______________________________________________ ffmpeg-devel mailing list ffmpeg-devel@ffmpeg.org https://ffmpeg.org/mailman/listinfo/ffmpeg-devel To unsubscribe, visit link above, or email ffmpeg-devel-requ...@ffmpeg.org with subject "unsubscribe".