summaryrefslogtreecommitdiff
path: root/libavdevice/sndio_dec.c
diff options
context:
space:
mode:
Diffstat (limited to 'libavdevice/sndio_dec.c')
-rw-r--r--libavdevice/sndio_dec.c7
1 files changed, 0 insertions, 7 deletions
diff --git a/libavdevice/sndio_dec.c b/libavdevice/sndio_dec.c
index 3014fd2787..6e386c6d99 100644
--- a/libavdevice/sndio_dec.c
+++ b/libavdevice/sndio_dec.c
@@ -34,13 +34,6 @@ static av_cold int audio_read_header(AVFormatContext *s1,
AVStream *st;
int ret;
-#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)
return AVERROR(ENOMEM);