[FFmpeg-devel] [PATCH] lavf/utils: provide feedback in case of invalid probe size

Stefano Sabatini stefasab at gmail.com
Sat Jan 19 00:32:27 CET 2013


On date Friday 2013-01-18 22:57:17 +0000, Paul B Mahol encoded:
> On 1/16/13, Stefano Sabatini <stefasab at gmail.com> wrote:
> > On date Wednesday 2013-01-16 12:19:17 +0000, Paul B Mahol encoded:
> >> On 1/16/13, Stefano Sabatini <stefasab at gmail.com> wrote:
> >> > Log message in case the max_probe_size value in av_probe_input_buffer()
> >> > is smaller than the minimum accepted value.
> >> > ---
> >> >  libavformat/utils.c |    2 ++
> >> >  1 file changed, 2 insertions(+)
> >> >
> >> > diff --git a/libavformat/utils.c b/libavformat/utils.c
> >> > index d43e1c0..2ae528e 100644
> >> > --- a/libavformat/utils.c
> >> > +++ b/libavformat/utils.c
> >> > @@ -442,6 +442,8 @@ int av_probe_input_buffer(AVIOContext *pb,
> >> > AVInputFormat
> >> > **fmt,
> >> >      } else if (max_probe_size > PROBE_BUF_MAX) {
> >> >          max_probe_size = PROBE_BUF_MAX;
> >> >      } else if (max_probe_size < PROBE_BUF_MIN) {
> >> > +        av_log(logctx, AV_LOG_ERROR,
> >> > +               "Specified probe size value %u < 2048\n",
> >> > max_probe_size);
> >>
> >> why is 2048 hardcoded?
> >
> > Up.
> 
> Should be OK.

Applied, thanks.
-- 
FFmpeg = Foolish and Funny Multipurpose Powered Erotic Guru


More information about the ffmpeg-devel mailing list