[FFmpeg-devel] [PATCH]Print number of reference frames if debug level >= verbose

Michael Niedermayer michaelni at gmx.at
Fri Mar 13 04:18:11 CET 2015


On Fri, Mar 13, 2015 at 02:11:54AM +0100, Carl Eugen Hoyos wrote:
> Hi!
> 
> On Wednesday 11 March 2015 04:03:27 am Michael Niedermayer wrote:
> > On Tue, Mar 10, 2015 at 03:27:20PM +0100, Carl Eugen Hoyos wrote:
> > > +    if (av_log_get_level() >= AV_LOG_VERBOSE && enc->refs)
> > > +        snprintf(buf + strlen(buf), buf_size - strlen(buf),
> > > ", %d reference frame(s)", enc->refs);
> >
> > this should only be printed for video and the "s" should only be
> > printed for refs > 1
> 
> New patch attached.
> 
> Thank you, Carl Eugen

>  utils.c |    6 ++++++
>  1 file changed, 6 insertions(+)
> eaa8592e1307e4ed33bd65dbfd422b76d54b7029  patchrefs.diff
> diff --git a/libavcodec/utils.c b/libavcodec/utils.c
> index 5b28496..d739047 100644

LGTM

[...]

-- 
Michael     GnuPG fingerprint: 9FF2128B147EF6730BADF133611EC787040B0FAB

The worst form of inequality is to try to make unequal things equal.
-- Aristotle
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 181 bytes
Desc: Digital signature
URL: <https://ffmpeg.org/pipermail/ffmpeg-devel/attachments/20150313/764dab3c/attachment.asc>


More information about the ffmpeg-devel mailing list