summaryrefslogtreecommitdiff
path: root/libavdevice/alsa-audio-dec.c
diff options
context:
space:
mode:
authorJai Menon <jmenon86@gmail.com>2010-01-28 15:45:21 +0000
committerJai Menon <jmenon86@gmail.com>2010-01-28 15:45:21 +0000
commit90d0379f5eddc549c7e0a2ea3f2dcf4471c25c51 (patch)
tree1692688c9d512665ec7a022aefc2c36ae9b155f7 /libavdevice/alsa-audio-dec.c
parent52ed8d0efeb5627ffdd64f44b97d1c8965f33cf1 (diff)
Avoid using deprecated AVFormatParameters::[audio|video]_codec_id field.
Originally committed as revision 21511 to svn://svn.ffmpeg.org/ffmpeg/trunk
Diffstat (limited to 'libavdevice/alsa-audio-dec.c')
-rw-r--r--libavdevice/alsa-audio-dec.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/libavdevice/alsa-audio-dec.c b/libavdevice/alsa-audio-dec.c
index 4dac3f9cb4..833bca3b06 100644
--- a/libavdevice/alsa-audio-dec.c
+++ b/libavdevice/alsa-audio-dec.c
@@ -79,7 +79,7 @@ static av_cold int audio_read_header(AVFormatContext *s1,
return AVERROR(ENOMEM);
}
sample_rate = ap->sample_rate;
- codec_id = ap->audio_codec_id;
+ codec_id = s1->audio_codec_id;
ret = ff_alsa_open(s1, SND_PCM_STREAM_CAPTURE, &sample_rate, ap->channels,
&codec_id);