summaryrefslogtreecommitdiffstats
path: root/libhb/stream.c
diff options
context:
space:
mode:
Diffstat (limited to 'libhb/stream.c')
-rw-r--r--libhb/stream.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/libhb/stream.c b/libhb/stream.c
index adc9a3eed..427e10209 100644
--- a/libhb/stream.c
+++ b/libhb/stream.c
@@ -4942,7 +4942,8 @@ static hb_buffer_t * hb_ts_stream_decode( hb_stream_t *stream )
// end of file - we didn't finish filling our ps write buffer
// so just discard the remainder (the partial buffer is useless)
hb_log("hb_ts_stream_decode - eof");
- return NULL;
+ b = flush_ts_streams(stream);
+ return b;
}
b = hb_ts_decode_pkt( stream, buf, 0, 0 );