diff options
author | Anton Khirnov <anton@khirnov.net> | 2011-05-23 20:13:28 +0200 |
---|---|---|
committer | Anton Khirnov <anton@khirnov.net> | 2011-05-25 15:55:46 +0200 |
commit | bffd4dd1d36b1e9b9479c81b370c134ffb434e1a (patch) | |
tree | 8842f73148551a471cff426366ae66224ee48ec1 /libavdevice/oss_audio.c | |
parent | 5b3865fc5f9675dd55f7dd7d5ae3b9ed58c3310c (diff) | |
download | ffmpeg-bffd4dd1d36b1e9b9479c81b370c134ffb434e1a.tar.gz |
lavf: deprecate AVFormatParameters.{channels,sample_rate}.
Diffstat (limited to 'libavdevice/oss_audio.c')
-rw-r--r-- | libavdevice/oss_audio.c | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/libavdevice/oss_audio.c b/libavdevice/oss_audio.c index bcd6540021..af46ea890b 100644 --- a/libavdevice/oss_audio.c +++ b/libavdevice/oss_audio.c @@ -218,10 +218,12 @@ static int audio_read_header(AVFormatContext *s1, AVFormatParameters *ap) 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) { |