[FFmpeg-devel] [PATCH 10/10] Implement av_parse_fraction(), and use it in av_parse_video_rate().
Stefano Sabatini
stefano.sabatini-lala
Thu Sep 30 23:56:49 CEST 2010
On date Thursday 2010-09-30 23:50:57 +0200, Stefano Sabatini encoded:
> The new function is useful for parsing framerates, timebases or
> generic fractions (not necessarily video frame rates).
> ---
> libavcore/parseutils.c | 95 ++++++++++++++++++++++++++++++++++++++++--------
> libavcore/parseutils.h | 11 ++++++
> 2 files changed, 90 insertions(+), 16 deletions(-)
For the chronicles, I implemented this mainly because I wanted to use
this function in the settb filter, and av_parse_video_frame() is
suited for parsing a *framerate* rather than a generic fraction (also
it lacked validity checks).
Also I'm not sure lavcore is the right place for it, since it's not
multimedia-related then it could stay in lavu as well (avstring.h?,
rational.h?).
Regards.
--
FFmpeg = Furious and Frenzy Mastodontic Ponderous Elastic Geisha
More information about the ffmpeg-devel
mailing list