|
|
@ -1216,18 +1216,18 @@ static void do_video_out(OutputFile *of, |
|
|
|
if (delta0 > 1.1) |
|
|
|
if (delta0 > 1.1) |
|
|
|
nb0_frames = llrintf(delta0 - 0.6); |
|
|
|
nb0_frames = llrintf(delta0 - 0.6); |
|
|
|
} |
|
|
|
} |
|
|
|
next_picture->pkt_duration = 1; |
|
|
|
next_picture->duration = 1; |
|
|
|
break; |
|
|
|
break; |
|
|
|
case VSYNC_VFR: |
|
|
|
case VSYNC_VFR: |
|
|
|
if (delta <= -0.6) |
|
|
|
if (delta <= -0.6) |
|
|
|
nb_frames = 0; |
|
|
|
nb_frames = 0; |
|
|
|
else if (delta > 0.6) |
|
|
|
else if (delta > 0.6) |
|
|
|
ost->sync_opts = llrint(sync_ipts); |
|
|
|
ost->sync_opts = llrint(sync_ipts); |
|
|
|
next_picture->pkt_duration = duration; |
|
|
|
next_picture->duration = duration; |
|
|
|
break; |
|
|
|
break; |
|
|
|
case VSYNC_DROP: |
|
|
|
case VSYNC_DROP: |
|
|
|
case VSYNC_PASSTHROUGH: |
|
|
|
case VSYNC_PASSTHROUGH: |
|
|
|
next_picture->pkt_duration = duration; |
|
|
|
next_picture->duration = duration; |
|
|
|
ost->sync_opts = llrint(sync_ipts); |
|
|
|
ost->sync_opts = llrint(sync_ipts); |
|
|
|
break; |
|
|
|
break; |
|
|
|
default: |
|
|
|
default: |
|
|
|