[FFmpeg-devel] [PATCH]Print demuxer name after successful probing

Michael Niedermayer michaelni at gmx.at
Tue Apr 19 11:18:46 CEST 2011


On Tue, Apr 19, 2011 at 11:15:25AM +0200, Stefano Sabatini wrote:
> On date Tuesday 2011-04-19 10:54:13 +0200, Carl Eugen Hoyos encoded:
> > Hi!
> > 
> > I find attached very useful, but maybe I miss why this wasn't added before.
> > 
> > Please comment, Carl Eugen
> 
> > diff --git a/libavformat/utils.c b/libavformat/utils.c
> > index 1919f61..cfce076 100644
> > --- a/libavformat/utils.c
> > +++ b/libavformat/utils.c
> > @@ -594,9 +594,9 @@ int av_probe_input_buffer(AVIOContext *pb, AVInputFormat **fmt,
> >          *fmt = av_probe_input_format2(&pd, 1, &score);
> >          if(*fmt){
> >              if(score <= AVPROBE_SCORE_MAX/4){ //this can only be true in the last iteration
> > -                av_log(logctx, AV_LOG_WARNING, "Format detected only with low score of %d, misdetection possible!\n", score);
> > +                av_log(logctx, AV_LOG_WARNING, "%s: Format detected only with low score of %d, misdetection possible!\n", (*fmt)->name, score);
> >              }else
> > -                av_log(logctx, AV_LOG_DEBUG, "Probed with size=%d and score=%d\n", probe_size, score);
> > +                av_log(logctx, AV_LOG_DEBUG, "%s: Probed with size=%d and score=%d\n", (*fmt)->name, probe_size, score);
> 
> Looks fine to me, maybe more explicit:
> 
> ... "Format '%s' detected only with low score of %d, misdetection possible!\n", (*fmt)->name, score);
> ... "Format '%s' probed with size=%d and score=%d\n", (*fmt)->name, probe_size, score);


whatever carl prefers ...
iam fine with either

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

There seems to be only one solution to NIH syndrom, ... a shooting squad
-------------- 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/20110419/437a7124/attachment.asc>


More information about the ffmpeg-devel mailing list