Reinhard Tartler <[email protected]> writes: > On Wed, Jun 22, 2011 at 21:33:23 (CEST), Anton Khirnov wrote: > >> From: Reimar Döffinger <[email protected]> >> >> Printing a warning is enough. >> >> This allows the code to work with older MPlayer versions that >> just always set pb out of laziness. >> >> Signed-off-by: Reimar Döffinger <[email protected]> >> Signed-off-by: Anton Khirnov <[email protected]> >> --- >> libavformat/utils.c | 3 ++- >> 1 files changed, 2 insertions(+), 1 deletions(-) >> >> diff --git a/libavformat/utils.c b/libavformat/utils.c >> index 7370c60..3e278eb 100644 >> --- a/libavformat/utils.c >> +++ b/libavformat/utils.c >> @@ -570,7 +570,8 @@ static int init_input(AVFormatContext *s, const char >> *filename) >> if (!s->iformat) >> return av_probe_input_buffer(s->pb, &s->iformat, filename, s, >> 0, 0); >> else if (s->iformat->flags & AVFMT_NOFILE) >> - return AVERROR(EINVAL); >> + av_log(s, AV_LOG_WARNING, "Custom AVIOContext makes no sense >> and " >> + "will be ignored with AVFMT_NOFILE >> format.\n"); >> return 0; >> } > > Makes sense to me,
If this is only to please *old* mplayer versions, it does not make sense. -- Måns Rullgård [email protected] _______________________________________________ libav-devel mailing list [email protected] https://lists.libav.org/mailman/listinfo/libav-devel
