diff options
author | Jean-Marc Valin <jmvalin@jmvalin.ca> | 2019-01-23 21:47:40 +0300 |
---|---|---|
committer | Jean-Marc Valin <jmvalin@jmvalin.ca> | 2019-01-23 21:48:31 +0300 |
commit | 9f2a0c70d40442f3f05a575c4ea3e9eb1051a195 (patch) | |
tree | 833416d2b80eb9538d84367cd27201865e60e1a5 /src/opus_multistream_decoder.c | |
parent | f57908334a7b258b7e52ebdd23c910f0e4a19069 (diff) |
Properly handle a bad stream_id in OPUS_MULTISTREAM_GET_*_STATE_REQUEST
Thanks to Dmitriy for reporting this.
Diffstat (limited to 'src/opus_multistream_decoder.c')
-rw-r--r-- | src/opus_multistream_decoder.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/opus_multistream_decoder.c b/src/opus_multistream_decoder.c index 562103cd..0018517a 100644 --- a/src/opus_multistream_decoder.c +++ b/src/opus_multistream_decoder.c @@ -487,7 +487,7 @@ int opus_multistream_decoder_ctl_va_list(OpusMSDecoder *st, int request, OpusDecoder **value; stream_id = va_arg(ap, opus_int32); if (stream_id<0 || stream_id >= st->layout.nb_streams) - ret = OPUS_BAD_ARG; + goto bad_arg; value = va_arg(ap, OpusDecoder**); if (!value) { |