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 }, };