diff options
author | John Stebbins <[email protected]> | 2017-11-22 08:09:32 -0800 |
---|---|---|
committer | John Stebbins <[email protected]> | 2017-11-22 08:09:32 -0800 |
commit | 8090e83d1d593dffb7e1d782a0265e21a2c05751 (patch) | |
tree | e23d8863c046690c701fab4079124952e97a98f8 /libhb | |
parent | 8946e29db99d7fcb761b1a2be619ce18afce40aa (diff) |
scan: don't abort on empty buffers
Fixes https://github.com/HandBrake/HandBrake/issues/1017
Diffstat (limited to 'libhb')
-rw-r--r-- | libhb/scan.c | 8 |
1 files 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 ); |