[FFmpeg-devel] [PATCH 2/3] avformat/avienc: add reserve_index_space option

Michael Niedermayer michaelni at gmx.at
Thu Jan 19 19:32:55 EET 2017


On Wed, Jan 18, 2017 at 10:27:02AM +0100, Tobias Rapp wrote:
> Allows the user to reserve space for the ODML master index. A sufficient
> sized master index in the AVI header avoids storing follow-up master
> indexes within the 'movi' data later.
> 
> If the option is omitted or zero the index size is estimated from output
> duration and bitrate. A worst-case bitrate for video streams is assumed
> in case it is not available.
> 
> Note: fate reference files changed because the video stream had zero
> bitrate before and is guessed now.
> 
> Signed-off-by: Tobias Rapp <t.rapp at noa-archive.com>
> ---
>  libavformat/avi.h                       |  1 -
>  libavformat/avienc.c                    | 77 ++++++++++++++++++++++++++++++---
>  libavformat/version.h                   |  2 +-
>  tests/ref/fate/mpeg4-bsf-unpack-bframes |  2 +-
>  tests/ref/lavf-fate/avi_cram            |  2 +-
>  5 files changed, 74 insertions(+), 10 deletions(-)

this breaks segment:
./ffmpeg -i lena.pnm -f segment test%d.avi

possibly related to avi_init()


[...]
-- 
Michael     GnuPG fingerprint: 9FF2128B147EF6730BADF133611EC787040B0FAB

Republics decline into democracies and democracies degenerate into
despotisms. -- Aristotle
-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 181 bytes
Desc: Digital signature
URL: <http://ffmpeg.org/pipermail/ffmpeg-devel/attachments/20170119/4bbce2b7/attachment.sig>


More information about the ffmpeg-devel mailing list