Quoting Diego Biurrun (2016-02-21 14:59:23)
> On Sun, Feb 21, 2016 at 12:53:18PM +0100, Anton Khirnov wrote:
> > --- a/libavdevice/xcbgrab.c
> > +++ b/libavdevice/xcbgrab.c
> > @@ -544,13 +544,14 @@ static int create_stream(AVFormatContext *s)
> >  
> > -    st->codec->codec_type = AVMEDIA_TYPE_VIDEO;
> > -    st->codec->codec_id   = AV_CODEC_ID_RAWVIDEO;
> > -    st->codec->width      = c->width;
> > -    st->codec->height     = c->height;
> > -    st->codec->time_base  = c->time_base;
> > +    st->codecpar->codec_type = AVMEDIA_TYPE_VIDEO;
> > +    st->codecpar->codec_id   = AV_CODEC_ID_RAWVIDEO;
> > +    st->codecpar->width      = c->width;
> > +    st->codecpar->height     = c->height;
> >  
> > +    st->avg_frame_rate = av_inv_q(c->time_base);
> 
> The last line was not added by sed, so it should be aligned ;p

Aktually it's redundant, since avg_frame_rate is already set in that
file. Line dropped locally.

-- 
Anton Khirnov
_______________________________________________
libav-devel mailing list
libav-devel@libav.org
https://lists.libav.org/mailman/listinfo/libav-devel

Reply via email to