]> git.sesse.net Git - ffmpeg/blobdiff - libavdevice/alsa-audio-dec.c
Merge remote-tracking branch 'qatar/master'
[ffmpeg] / libavdevice / alsa-audio-dec.c
index 5e2f2a88970cee5a0eb548a98e11935a8629e802..11c6e92928619348ad360a8ade61c9c013a47009 100644 (file)
@@ -61,14 +61,6 @@ static av_cold int audio_read_header(AVFormatContext *s1,
     enum CodecID codec_id;
     double o;
 
-#if FF_API_FORMAT_PARAMETERS
-    if (ap->sample_rate > 0)
-        s->sample_rate = ap->sample_rate;
-
-    if (ap->channels > 0)
-        s->channels = ap->channels;
-#endif
-
     st = av_new_stream(s1, 0);
     if (!st) {
         av_log(s1, AV_LOG_ERROR, "Cannot add stream\n");