[FFmpeg-trac] #8579(ffplay:new): a tiny timestamp error in ffplay
FFmpeg
trac at avcodec.org
Mon Mar 23 07:46:48 EET 2020
#8579: a tiny timestamp error in ffplay
-----------------------------------+---------------------------------------
Reporter: elite_jwp | Type: defect
Status: new | Priority: normal
Component: ffplay | Version: unspecified
Keywords: | Blocked By:
Blocking: | Reproduced by developer: 0
Analyzed by developer: 0 |
-----------------------------------+---------------------------------------
At ffplay.c:3004 there is a code block as below:
{{{
if (!is->paused &&
(!is->audio_st || (is->auddec.finished == is->audioq.serial &&
frame_queue_nb_remaining(&is->sampq) == 0)) &&
(!is->video_st || (is->viddec.finished == is->videoq.serial &&
frame_queue_nb_remaining(&is->pictq) == 0))) {
if (loop != 1 && (!loop || --loop)) {
stream_seek(is, start_time != AV_NOPTS_VALUE ? start_time
: 0, 0, 0);
} else if (autoexit) {
ret = AVERROR_EOF;
goto fail;
}
}
}}}
When using '''stream_seek''' with '''start_time''', it doesn't add the
stream start time just like code at ffplay.c:2896:
{{{
timestamp = start_time;
/* add the stream start time */
if (ic->start_time != AV_NOPTS_VALUE)
timestamp += ic->start_time;
ret = avformat_seek_file(ic, -1, INT64_MIN, timestamp, INT64_MAX,
0);
}}}
--
Ticket URL: <https://trac.ffmpeg.org/ticket/8579>
FFmpeg <https://ffmpeg.org>
FFmpeg issue tracker
More information about the FFmpeg-trac
mailing list