From 90d0379f5eddc549c7e0a2ea3f2dcf4471c25c51 Mon Sep 17 00:00:00 2001 From: Jai Menon Date: Thu, 28 Jan 2010 15:45:21 +0000 Subject: Avoid using deprecated AVFormatParameters::[audio|video]_codec_id field. Originally committed as revision 21511 to svn://svn.ffmpeg.org/ffmpeg/trunk --- libavdevice/alsa-audio-dec.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'libavdevice/alsa-audio-dec.c') 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); -- cgit v1.2.3