[FFmpeg-cvslog] r19889 - trunk/libavformat/utils.c

Baptiste Coudurier baptiste.coudurier
Wed Sep 16 23:02:37 CEST 2009


On 09/16/2009 01:23 PM, michael wrote:
> Author: michael
> Date: Wed Sep 16 22:23:04 2009
> New Revision: 19889
>
> Log:
> Print at debug level the score with which probing succeeded.
>
> Modified:
>     trunk/libavformat/utils.c
>
> Modified: trunk/libavformat/utils.c
> ==============================================================================
> --- trunk/libavformat/utils.c	Wed Sep 16 22:06:48 2009	(r19888)
> +++ trunk/libavformat/utils.c	Wed Sep 16 22:23:04 2009	(r19889)
> @@ -474,6 +474,8 @@ int av_open_input_file(AVFormatContext *
>               }
>               /* guess file format */
>               fmt = av_probe_input_format2(pd, 1,&score);
> +            if(fmt)
> +                av_log(*ic_ptr, AV_LOG_DEBUG, "Probe with size=%d detected %s with score=%d\n", probe_size, fmt->name, score);
>           }
>           av_freep(&pd->buf);
>       }

Nice, btw this can also be added for codec probe.

-- 
Baptiste COUDURIER
Key fingerprint                 8D77134D20CC9220201FC5DB0AC9325C5C1ABAAA
FFmpeg maintainer                                  http://www.ffmpeg.org
-------------- next part --------------
A non-text attachment was scrubbed...
Name: codec_probed_debug.patch
Type: text/x-patch
Size: 1284 bytes
Desc: not available
URL: <http://lists.mplayerhq.hu/pipermail/ffmpeg-cvslog/attachments/20090916/3d51b285/attachment.bin>



More information about the ffmpeg-cvslog mailing list