summaryrefslogtreecommitdiff
path: root/libavdevice/lavfi.c
diff options
context:
space:
mode:
Diffstat (limited to 'libavdevice/lavfi.c')
-rw-r--r--libavdevice/lavfi.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/libavdevice/lavfi.c b/libavdevice/lavfi.c
index 65632e302d..20fa3e69b2 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));