Revision 90d0379f libavdevice/alsa-audio-dec.c

View differences:

libavdevice/alsa-audio-dec.c
79 79
        return AVERROR(ENOMEM);
80 80
    }
81 81
    sample_rate = ap->sample_rate;
82
    codec_id    = ap->audio_codec_id;
82
    codec_id    = s1->audio_codec_id;
83 83

  
84 84
    ret = ff_alsa_open(s1, SND_PCM_STREAM_CAPTURE, &sample_rate, ap->channels,
85 85
        &codec_id);

Also available in: Unified diff