[FFmpeg-devel] [PATCH] avformat: offset fps calculation by one to include 60.00 fps
h.leppkes at gmail.com
Thu Jun 21 09:43:22 CEST 2012
attached patch moves the fps calculation window slightly to include
60.00fps as a possible candidate for the fps, and instead don't consider 0
fps as a valid option.
60.00 fps is quite common for example when using a screen recorder on a PC
to capture a video game (eg. Fraps). Before this patch, the FPS guessing
code would end up on 59.94 as the closest match, instead of the true 60.00.
This was the easiest solution to include 60.00fps into the calculation,
instead the range could be extended by one to include both 0 fps and 60
fps, but since 0 fps didn't seem all that useful to me, i opted to go with
the more simple approach.
-------------- next part --------------
A non-text attachment was scrubbed...
Size: 786 bytes
Desc: not available
More information about the ffmpeg-devel