[FFmpeg-devel] [PATCH] export av_probe_input_format2
Diego Biurrun
diego
Fri Jun 19 17:42:17 CEST 2009
On Thu, Jun 11, 2009 at 02:06:28PM +0200, elupus wrote:
>
> Currently av_probe_input_format2 is a static function in
> libavformat/utils.c. This makes it impossible for a user of the library,
> that is using av_open_input_stream instead of av_open_input_file, to mimic
> the behavior of av_open_input_file.
>
> This patch exports this function.
>
> --- libavformat/avformat.h (revision 19154)
> +++ libavformat/avformat.h (working copy)
> @@ -763,6 +763,15 @@
> AVInputFormat *av_probe_input_format(AVProbeData *pd, int is_opened);
>
> /**
> + * Guess file format.
> + *
> + * @param is_opened Whether the file is already opened; determines whether
> + * demuxers with or without AVFMT_NOFILE are probed.
> + * @param score_max Returns the score of the format found. Should be
> + * set to the minimum accepted score when called.
> + */
> +AVInputFormat *av_probe_input_format(AVProbeData *pd, int is_opened, int *score_max);
> +/**
This should have an empty line between function declarations for
readability.
This patch is obviously untested and does not even compile.
Diego
More information about the ffmpeg-devel
mailing list