summaryrefslogtreecommitdiff
path: root/libavformat/pcmdec.c
diff options
context:
space:
mode:
authorJanne Grunau <janne-libav@jannau.net>2012-10-25 15:10:22 +0200
committerJanne Grunau <janne-libav@jannau.net>2012-10-25 15:14:40 +0200
commitdcdfb8ede3580cde6acc1c6ca889ad3b610d75dc (patch)
treeceb5917e5d02e110e7bb2656496a4ab001c8d1d0 /libavformat/pcmdec.c
parent1b891d17c531e8a63c2974aab4bf997ce70746f3 (diff)
pcmdec: change default of channels parameter to 1
This was previously implicitly done in ff_raw_read_header(). Fixes fate tests with pcm input.
Diffstat (limited to 'libavformat/pcmdec.c')
-rw-r--r--libavformat/pcmdec.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/libavformat/pcmdec.c b/libavformat/pcmdec.c
index 40446c29e3..de6f13e0c5 100644
--- a/libavformat/pcmdec.c
+++ b/libavformat/pcmdec.c
@@ -83,7 +83,7 @@ static int raw_read_packet(AVFormatContext *s, AVPacket *pkt)
static const AVOption pcm_options[] = {
{ "sample_rate", "", offsetof(RawAudioDemuxerContext, sample_rate), AV_OPT_TYPE_INT, {.i64 = 0}, 0, INT_MAX, AV_OPT_FLAG_DECODING_PARAM },
- { "channels", "", offsetof(RawAudioDemuxerContext, channels), AV_OPT_TYPE_INT, {.i64 = 0}, 0, INT_MAX, AV_OPT_FLAG_DECODING_PARAM },
+ { "channels", "", offsetof(RawAudioDemuxerContext, channels), AV_OPT_TYPE_INT, {.i64 = 1}, 0, INT_MAX, AV_OPT_FLAG_DECODING_PARAM },
{ NULL },
};