[FFmpeg-devel] [PATCH] Implement in lavc a flag which makes avcodec_open() to choose the best framerate

Stefano Sabatini stefano.sabatini-lala
Sun Aug 31 13:19:31 CEST 2008


On date Sunday 2008-08-31 00:11:03 +0200, Michael Niedermayer encoded:
[...]
> I think we should add a function that takes a list of AVRational and a AVRational
> and finds the closest match for that. Its return value should indicate if the
> match is exact or approximate
> Such function might be usefull for other things as well ...

Yes it's the best solution I can see, it's even simpler
application-level-wise, I would like to have thought that!

I also thought about to return the comparation code rather than an
"exact" flag like in av_reduce(), I slightly prefer the attached
solution but let me know.

As for the name of the flag to implement in ffmpeg, I'm aware that
-choose_best_framerate may sound too long, suggestions are welcome.

Regards.

PS Yes of course I'm going to remove the application example in the
commit.
-- 
FFmpeg = Funny Faboulous Multimedia Pitiless EniGma
-------------- next part --------------
A non-text attachment was scrubbed...
Name: implement-nearest-q-00.patch
Type: text/x-diff
Size: 2990 bytes
Desc: not available
URL: <http://lists.mplayerhq.hu/pipermail/ffmpeg-devel/attachments/20080831/9f43fd03/attachment.patch>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: implement-choose-best-framerate-00.patch
Type: text/x-diff
Size: 2186 bytes
Desc: not available
URL: <http://lists.mplayerhq.hu/pipermail/ffmpeg-devel/attachments/20080831/9f43fd03/attachment-0001.patch>



More information about the ffmpeg-devel mailing list