[FFmpeg-devel] [PATCH 1/2] lavf: add info_probe_size option.

Michael Niedermayer michaelni at gmx.at
Mon Apr 23 22:39:44 CEST 2012


On Mon, Apr 23, 2012 at 02:02:40PM +0200, Nicolas George wrote:
> This option separates the "probe format" and "probe packets
> for various info" semantic of the probesize option.
> Input formats are now allowed to raise it if necessary under
> special circumstances (example: large rawvideo frames).
> 
> Signed-off-by: Nicolas George <nicolas.george at normalesup.org>
> ---
>  libavformat/avformat.h      |    6 ++++++
>  libavformat/options_table.h |    1 +
>  libavformat/utils.c         |    8 +++++---
>  libavformat/version.h       |    2 +-
>  4 files changed, 13 insertions(+), 4 deletions(-)
> 
> 
> I originally added a more lengthy documentation in avoptions_format.texi but
> it was overwritten. I did not find where to put it.
> 
>

> diff --git a/libavformat/avformat.h b/libavformat/avformat.h
> index d2727d4..f6850bc 100644
> --- a/libavformat/avformat.h
> +++ b/libavformat/avformat.h
> @@ -1016,6 +1016,12 @@ typedef struct AVFormatContext {
>      AVIOInterruptCB interrupt_callback;
>  
>      /**
> +     * decoding: size of data to probe for stream information;
> +     * encoding: unused.
> +     */
> +    unsigned int info_probe_size;
> +
> +    /**
>       * Flags to enable debugging.
>       */
>      int debug;

Adding the field in the middle breaks ABI

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

Everything should be made as simple as possible, but not simpler.
-- Albert Einstein
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 198 bytes
Desc: Digital signature
URL: <http://ffmpeg.org/pipermail/ffmpeg-devel/attachments/20120423/94d41b48/attachment.asc>


More information about the ffmpeg-devel mailing list