summaryrefslogtreecommitdiffstats
path: root/libhb/stream.c
diff options
context:
space:
mode:
authorJohn Stebbins <[email protected]>2019-01-07 15:30:05 -0700
committerJohn Stebbins <[email protected]>2019-01-07 15:31:47 -0700
commit76f14dad963db46961ce3d425a102ac3d898ce10 (patch)
tree8011a0dbe6e248f4df595ba34427952919aa658d /libhb/stream.c
parent58ed6c8a448ab61f55fcba4df03718346bfb81d4 (diff)
fix missing frames when transcoding m2ts files
Fixes https://github.com/HandBrake/HandBrake/issues/1611
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 );