summaryrefslogtreecommitdiff
path: root/libavdevice/dshow.c
diff options
context:
space:
mode:
authorRamiro Polla <ramiro.polla@gmail.com>2011-05-21 21:53:15 +0200
committerMichael Niedermayer <michaelni@gmx.at>2011-05-21 21:53:15 +0200
commita13fec8a9cbc13745bcb7e7c1b017d72623051ad (patch)
tree0b7816f530bb8b0cfb6ec0026245946b290cec3d /libavdevice/dshow.c
parente6ec9212c543c77ab3ddab90ac52021cfbbdac17 (diff)
DirectShow capture: Fix build
Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
Diffstat (limited to 'libavdevice/dshow.c')
-rw-r--r--libavdevice/dshow.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/libavdevice/dshow.c b/libavdevice/dshow.c
index ef21af796a..901c766696 100644
--- a/libavdevice/dshow.c
+++ b/libavdevice/dshow.c
@@ -464,7 +464,7 @@ dshow_add_device(AVFormatContext *avctx, AVFormatParameters *ap,
goto error;
}
- codec->codec_type = CODEC_TYPE_AUDIO;
+ codec->codec_type = AVMEDIA_TYPE_AUDIO;
codec->sample_fmt = sample_fmt_bits_per_sample(fx->wBitsPerSample);
codec->codec_id = waveform_codec_id(codec->sample_fmt);
codec->sample_rate = fx->nSamplesPerSec;
@@ -634,7 +634,7 @@ static int dshow_read_packet(AVFormatContext *s, AVPacket *pkt)
return pkt->size;
}
-AVInputFormat dshow_demuxer = {
+AVInputFormat ff_dshow_demuxer = {
"dshow",
NULL_IF_CONFIG_SMALL("DirectShow capture"),
sizeof(struct dshow_ctx),