Browse Source

ws_snd: make sure number of channels is 1

tags/n0.9
Justin Ruggles 14 years ago
parent
commit
6a818cb3ff
1 changed files with 5 additions and 0 deletions
  1. +5
    -0
      libavcodec/ws-snd1.c

+ 5
- 0
libavcodec/ws-snd1.c View File

@@ -41,6 +41,11 @@ static av_cold int ws_snd_decode_init(AVCodecContext * avctx)
{
// WSSNDContext *c = avctx->priv_data;

if (avctx->channels != 1) {
av_log_ask_for_sample(avctx, "unsupported number of channels\n");
return AVERROR(EINVAL);
}

avctx->sample_fmt = AV_SAMPLE_FMT_U8;
return 0;
}


Loading…
Cancel
Save