[FFmpeg-trac] #1578(undetermined:open): variable FPS incorrect frame length
FFmpeg
trac at avcodec.org
Tue Dec 10 08:36:49 CET 2013
#1578: variable FPS incorrect frame length
-------------------------------------+-------------------------------------
Reporter: kubabrecka | Owner:
Type: defect | Status: open
Priority: normal | Component:
Version: git-master | undetermined
Keywords: fps | Resolution:
Blocking: | Blocked By:
Analyzed by developer: 0 | Reproduced by developer: 1
-------------------------------------+-------------------------------------
Comment (by er.anshul.maheshwari@…):
git have same calculation
but adding break in below code does not have frame loss
{{{
switch (format_video_sync) {
case VSYNC_VSCFR:
if (ost->frame_number == 0 && delta - duration >= 0.5) {
av_log(NULL, AV_LOG_DEBUG, "Not duplicating %d initial
frames\n", (int)lrintf(delta - duration));
delta = duration;
ost->sync_opts = lrint(sync_ipts);
}
case VSYNC_CFR:
// FIXME set to 0.5 after we fix some dts/pts bugs like in
avidec.c
if (delta < -1.1)
nb_frames = 0;
else if (delta > 1.1)
nb_frames = lrintf(delta);
break;
}}}
--
Ticket URL: <https://trac.ffmpeg.org/ticket/1578#comment:10>
FFmpeg <http://ffmpeg.org>
FFmpeg issue tracker
More information about the FFmpeg-trac
mailing list