From bffd4dd1d36b1e9b9479c81b370c134ffb434e1a Mon Sep 17 00:00:00 2001 From: Anton Khirnov Date: Mon, 23 May 2011 20:13:28 +0200 Subject: lavf: deprecate AVFormatParameters.{channels,sample_rate}. --- libavdevice/sndio_dec.c | 2 ++ 1 file changed, 2 insertions(+) (limited to 'libavdevice/sndio_dec.c') diff --git a/libavdevice/sndio_dec.c b/libavdevice/sndio_dec.c index abe13e1359..2690ee395c 100644 --- a/libavdevice/sndio_dec.c +++ b/libavdevice/sndio_dec.c @@ -34,10 +34,12 @@ 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) -- cgit v1.2.3