diff options
Diffstat (limited to 'src/opus.c')
-rw-r--r-- | src/opus.c | 2 |
1 files changed, 1 insertions, 1 deletions
@@ -201,7 +201,7 @@ int opus_packet_parse_impl(const unsigned char *data, opus_int32 len, opus_int32 pad = 0; const unsigned char *data0 = data; - if (size==NULL) + if (size==NULL || len<1) return OPUS_BAD_ARG; framesize = opus_packet_get_samples_per_frame(data, 48000); |