diff options
Diffstat (limited to 'src/decoder_api.c')
-rw-r--r-- | src/decoder_api.c | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/src/decoder_api.c b/src/decoder_api.c index 934c7d811..d60dbb8d2 100644 --- a/src/decoder_api.c +++ b/src/decoder_api.c @@ -100,7 +100,8 @@ size_t decoder_read(struct decoder *decoder, { size_t nbytes; - assert(dc.state == DECODE_STATE_START || + assert(decoder == NULL || + dc.state == DECODE_STATE_START || dc.state == DECODE_STATE_DECODE); assert(is != NULL); assert(buffer != NULL); |