X-Git-Url: https://git.sesse.net/?a=blobdiff_plain;f=libavdevice%2Flavfi.c;h=20fa3e69b2f822ffc2c61ba6e3496924b96dcffc;hb=18b0c39f99eee508107c47345494e535b8757434;hp=65632e302d26751381686b87918b4b7ece15e7a3;hpb=9ca27df52fb4306a8e37c38d1ed9ab40c42a62dc;p=ffmpeg diff --git a/libavdevice/lavfi.c b/libavdevice/lavfi.c index 65632e302d2..20fa3e69b2f 100644 --- a/libavdevice/lavfi.c +++ b/libavdevice/lavfi.c @@ -239,7 +239,7 @@ av_cold static int lavfi_read_header(AVFormatContext *avctx) st->codec->codec_type = link->type; avpriv_set_pts_info(st, 64, link->time_base.num, link->time_base.den); if (link->type == AVMEDIA_TYPE_VIDEO) { - st->codec->codec_id = CODEC_ID_RAWVIDEO; + st->codec->codec_id = AV_CODEC_ID_RAWVIDEO; st->codec->pix_fmt = link->format; st->codec->time_base = link->time_base; st->codec->width = link->w; @@ -253,7 +253,7 @@ av_cold static int lavfi_read_header(AVFormatContext *avctx) st->codec->sample_rate = link->sample_rate; st->codec->time_base = link->time_base; st->codec->channel_layout = link->channel_layout; - if (st->codec->codec_id == CODEC_ID_NONE) + if (st->codec->codec_id == AV_CODEC_ID_NONE) av_log(avctx, AV_LOG_ERROR, "Could not find PCM codec for sample format %s.\n", av_get_sample_fmt_name(link->format));