[FFmpeg-devel] [PATCH] lavf: Add flags for how duration is estimated

Michael Bradshaw mbradshaw at sorensonmedia.com
Fri Jun 15 21:45:00 CEST 2012

On Fri, Jun 15, 2012 at 7:57 AM, Nicolas George
<nicolas.george at normalesup.org> wrote:
> Le septidi 27 prairial, an CCXX, Michael Bradshaw a écrit :
>> Attached patch adds 3 flags for AVFormatContext.flags so users can
>> know how the duration is retrieved and how accurate it is. I have a
>> use-case where I need to know if it's estimated from the bitrate.
>> Please review. If someone has a better idea of how this can be
>> implemented, I welcome their input.
> If I understand your code correctly, any file will always have exactly one
> of these flags set. This is not really what a flag is. IMHO, adding a
> dedicated field would be better.

Alright, new patch attached.
-------------- next part --------------
A non-text attachment was scrubbed...
Name: 0001-lavfi-add-field-for-how-duration-is-estimated.patch
Type: application/octet-stream
Size: 3015 bytes
Desc: not available
URL: <http://ffmpeg.org/pipermail/ffmpeg-devel/attachments/20120615/f53bfac9/attachment.obj>

More information about the ffmpeg-devel mailing list