[FFmpeg-devel] [PATCH 3/7] Extend ff_dprintf_picref() to make it print video interlaced and top_field_first information.

Stefano Sabatini stefano.sabatini-lala
Fri Aug 20 17:17:30 CEST 2010


On date Friday 2010-08-20 01:10:33 +0200, Michael Niedermayer encoded:
> On Thu, Aug 19, 2010 at 06:38:24PM +0200, Stefano Sabatini wrote:
> > ---
> >  libavfilter/avfilter.c |    5 +++--
> >  1 files changed, 3 insertions(+), 2 deletions(-)
> > 
> > diff --git a/libavfilter/avfilter.c b/libavfilter/avfilter.c
> > index 580023c..5bdd7a6 100644
> > --- a/libavfilter/avfilter.c
> > +++ b/libavfilter/avfilter.c
> > @@ -201,9 +201,10 @@ void ff_dprintf_picref(void *ctx, AVFilterBufferRef *picref, int end)
> >              picref->pts, picref->pos);
> >  
> >      if (picref->video) {
> > -        dprintf(ctx, " a:%d/%d s:%dx%d",
> > +        dprintf(ctx, " a:%d/%d s:%dx%d i:%d tff:%d",
> >                  picref->video->pixel_aspect.num, picref->video->pixel_aspect.den,
> > -                picref->video->w, picref->video->h);
> > +                picref->video->w, picref->video->h,
> > +                picref->video->interlaced, picref->video->top_field_first);
> >      }
> 
> ok if it printfs "P"/"T"/B" for progressive vs top field first interlaced ...

Changed and applied.
-- 
FFmpeg = Fascinating and Fiendish Most Problematic Embarassing Guru



More information about the ffmpeg-devel mailing list