[FFmpeg-devel] [PATCH 1/2] avformat/dump: Print tbc value

Michael Niedermayer michael at niedermayer.cc
Sat Jun 4 03:35:34 CEST 2016


On Fri, Jun 03, 2016 at 09:48:02PM -0300, James Almer wrote:
> On 6/3/2016 7:12 PM, Michael Niedermayer wrote:
> > Fixes regression of av_dump_format()
> > Fixes part of Ticket 5444
> > 
> > Signed-off-by: Michael Niedermayer <michael at niedermayer.cc>
> > ---
> >  libavformat/dump.c |   11 +++++++----
> >  1 file changed, 7 insertions(+), 4 deletions(-)
> > 
> > diff --git a/libavformat/dump.c b/libavformat/dump.c
> > index 7ff5ef0..485e9fd 100644
> > --- a/libavformat/dump.c
> > +++ b/libavformat/dump.c
> > @@ -492,16 +492,19 @@ static void dump_stream_format(AVFormatContext *ic, int i,
> >          int fps = st->avg_frame_rate.den && st->avg_frame_rate.num;
> >          int tbr = st->r_frame_rate.den && st->r_frame_rate.num;
> >          int tbn = st->time_base.den && st->time_base.num;
> > +        int tbc = st->codec->time_base.den && st->codec->time_base.num;
> >  
> > -        if (fps || tbr || tbn)
> > +        if (fps || tbr || tbn | tbc)
> 
> Shouldn't this be ||?

yea, typo, makes no difference but ill fix it

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

Into a blind darkness they enter who follow after the Ignorance,
they as if into a greater darkness enter who devote themselves
to the Knowledge alone. -- Isha Upanishad
-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 181 bytes
Desc: Digital signature
URL: <http://ffmpeg.org/pipermail/ffmpeg-devel/attachments/20160604/14902f9e/attachment.sig>


More information about the ffmpeg-devel mailing list