From 8090e83d1d593dffb7e1d782a0265e21a2c05751 Mon Sep 17 00:00:00 2001 From: John Stebbins Date: Wed, 22 Nov 2017 08:09:32 -0800 Subject: scan: don't abort on empty buffers Fixes https://github.com/HandBrake/HandBrake/issues/1017 --- libhb/scan.c | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/libhb/scan.c b/libhb/scan.c index 56ca56c90..8baeed356 100644 --- a/libhb/scan.c +++ b/libhb/scan.c @@ -717,13 +717,13 @@ static int DecodePreviews( hb_scan_t * data, hb_title_t * title, int flush ) goto skip_preview; } + packets++; if (buf->size <= 0) { - hb_log( "Warning: Could not read data for preview %d, skipped", i + 1 ); - abort = 1; - goto skip_preview; + // Ignore "null" frames + hb_buffer_close(&buf); + continue; } - packets++; (hb_demux[title->demuxer])(buf, &list_es, 0 ); -- cgit v1.2.3