diff options
Diffstat (limited to 'src/spu_dec')
-rw-r--r-- | src/spu_dec/sputext_demuxer.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/spu_dec/sputext_demuxer.c b/src/spu_dec/sputext_demuxer.c index fe259381c..20c0499da 100644 --- a/src/spu_dec/sputext_demuxer.c +++ b/src/spu_dec/sputext_demuxer.c @@ -149,7 +149,7 @@ static char *read_line_from_input(demux_sputext_t *this, char *line, off_t len) char *s; int linelen; - if ((len - this->buflen) > 512) { + if ((len - this->buflen) > 512 && len < SUB_BUFSIZE) { if((nread = this->input->read(this->input, &this->buf[this->buflen], len - this->buflen)) < 0) { xprintf(this->stream->xine, XINE_VERBOSITY_DEBUG, "read failed.\n"); |