Commit 668ee928 authored by michael's avatar michael

remove weird offsets


git-svn-id: file:///var/local/repositories/ffmpeg/trunk@3660 9553f0bf-9b14-0410-a0b8-cfaf0461ba5b
parent fa21e716
...@@ -695,7 +695,7 @@ static void do_video_out(AVFormatContext *s, ...@@ -695,7 +695,7 @@ static void do_video_out(AVFormatContext *s,
if (vdelta < -1.1) if (vdelta < -1.1)
nb_frames = 0; nb_frames = 0;
else if (vdelta > 1.1) else if (vdelta > 1.1)
nb_frames = lrintf(vdelta - 1.1 + 0.5); nb_frames = lrintf(vdelta);
//fprintf(stderr, "vdelta:%f, ost->sync_opts:%lld, ost->sync_ipts:%f nb_frames:%d\n", vdelta, ost->sync_opts, ost->sync_ipts, nb_frames); //fprintf(stderr, "vdelta:%f, ost->sync_opts:%lld, ost->sync_ipts:%f nb_frames:%d\n", vdelta, ost->sync_opts, ost->sync_ipts, nb_frames);
if (nb_frames == 0){ if (nb_frames == 0){
++nb_frames_drop; ++nb_frames_drop;
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment