On Sun, Feb 21, 2016 at 12:53:17PM +0100, Anton Khirnov wrote: > --- a/libavdevice/x11grab.c > +++ b/libavdevice/x11grab.c > @@ -347,16 +347,17 @@ static int x11grab_read_header(AVFormatContext *s1) > > - st->codec->codec_type = AVMEDIA_TYPE_VIDEO; > - st->codec->codec_id = AV_CODEC_ID_RAWVIDEO; > - st->codec->width = x11grab->width; > - st->codec->height = x11grab->height; > - st->codec->time_base = x11grab->time_base; > - st->codec->bit_rate = x11grab->frame_size * 1 / > av_q2d(x11grab->time_base) * 8; > + st->codecpar->codec_type = AVMEDIA_TYPE_VIDEO; > + st->codecpar->codec_id = AV_CODEC_ID_RAWVIDEO; > + st->codecpar->width = x11grab->width; > + st->codecpar->height = x11grab->height; > + st->codecpar->bit_rate = x11grab->frame_size * 1 / > av_q2d(x11grab->time_base) * 8; > + > + st->avg_frame_rate = av_inv_q(x11grab->time_base);
The last line was not added by sed, so it should be aligned ;p probably OK Diego _______________________________________________ libav-devel mailing list libav-devel@libav.org https://lists.libav.org/mailman/listinfo/libav-devel