aboutsummaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
Diffstat (limited to 'src')
-rw-r--r--src/decoder_api.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/src/decoder_api.c b/src/decoder_api.c
index 7df94e02..a85a52e7 100644
--- a/src/decoder_api.c
+++ b/src/decoder_api.c
@@ -194,7 +194,8 @@ decoder_data(struct decoder *decoder,
assert(dc.state == DECODE_STATE_DECODE);
if (dc.command == DECODE_COMMAND_STOP ||
- dc.command == DECODE_COMMAND_SEEK)
+ dc.command == DECODE_COMMAND_SEEK ||
+ length == 0)
return dc.command;
if (is != NULL && !decoder->stream_tag_sent) {