[FFmpeg-devel] regarding 1578 bug

Michael Niedermayer michaelni at gmx.at
Tue Dec 10 12:39:37 CET 2013


On Tue, Dec 10, 2013 at 01:09:42PM +0530, anshul wrote:
>  Hi
>     I was looking in ffmpeg .c function name do_video_out()
>     can any one give me the explanation, why we are not using break
> in case VSYNC_VSCFR;
> 
>     because if i put the break over there then i don't have frame dropping

because for constant frame rate output if there are more frames than
1/rate, its needed to drop some.


> 
>    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;
> 
> Thanks
> Anshul
> _______________________________________________
> ffmpeg-devel mailing list
> ffmpeg-devel at ffmpeg.org
> http://ffmpeg.org/mailman/listinfo/ffmpeg-devel
> 

-- 
Michael     GnuPG fingerprint: 9FF2128B147EF6730BADF133611EC787040B0FAB

It is what and why we do it that matters, not just one of them.
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 198 bytes
Desc: Digital signature
URL: <http://ffmpeg.org/pipermail/ffmpeg-devel/attachments/20131210/187a5434/attachment.asc>


More information about the ffmpeg-devel mailing list