Browse Source

DirectShow capture: Fix build

Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
tags/n0.8
Ramiro Polla Michael Niedermayer 14 years ago
parent
commit
a13fec8a9c
1 changed files with 2 additions and 2 deletions
  1. +2
    -2
      libavdevice/dshow.c

+ 2
- 2
libavdevice/dshow.c View File

@@ -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),


Loading…
Cancel
Save