X-Git-Url: https://git.sesse.net/?a=blobdiff_plain;f=libavdevice%2Fxcbgrab.c;h=9da46c8e0dae135b986d49bffe271f8eb227d60c;hb=6372c9dc9972318e75a5889ad6c52500b8294099;hp=2da7ec7d4fef1010c983b8c74ab8ba3591bd70be;hpb=32766877b4e1a7eeacfbca50c55d55ce8bb7b73d;p=ffmpeg diff --git a/libavdevice/xcbgrab.c b/libavdevice/xcbgrab.c index 2da7ec7d4fe..9da46c8e0da 100644 --- a/libavdevice/xcbgrab.c +++ b/libavdevice/xcbgrab.c @@ -548,13 +548,12 @@ static int create_stream(AVFormatContext *s) st->avg_frame_rate.num }; c->time_frame = av_gettime(); - 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; - ret = pixfmt_from_pixmap_format(s, geo->depth, &st->codec->pix_fmt); + ret = pixfmt_from_pixmap_format(s, geo->depth, &st->codecpar->format); free(geo);