diff options
author | jstebbins <[email protected]> | 2014-12-12 17:04:46 +0000 |
---|---|---|
committer | jstebbins <[email protected]> | 2014-12-12 17:04:46 +0000 |
commit | 7581ab31301bc337510b37e11b48a59394e9a1dc (patch) | |
tree | 8e4d77305f07628cc6d7548321e9c3599b0c81ed /libhb/scan.c | |
parent | 437ebf11d958eb89dde3cd98b8b11d2b4dc6cba8 (diff) |
scan: potential fix for missing audio tracks
git-svn-id: svn://svn.handbrake.fr/HandBrake/trunk@6597 b64f7644-9d1e-0410-96f1-a4d463321fa5
Diffstat (limited to 'libhb/scan.c')
-rw-r--r-- | libhb/scan.c | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/libhb/scan.c b/libhb/scan.c index 7ab7e17c7..8c8ce433f 100644 --- a/libhb/scan.c +++ b/libhb/scan.c @@ -599,8 +599,9 @@ static int DecodePreviews( hb_scan_t * data, hb_title_t * title, int flush ) hb_buffer_t * vid_buf = NULL; - int total_read = 0; - while (total_read < PREVIEW_READ_THRESH) + int total_read = 0, packets = 0; + while (total_read < PREVIEW_READ_THRESH || + (!AllAudioOK(title) && packets < 10000)) { if (data->bd) { @@ -657,6 +658,7 @@ static int DecodePreviews( hb_scan_t * data, hb_title_t * title, int flush ) goto skip_preview; } total_read += buf->size; + packets++; (hb_demux[title->demuxer])(buf, list_es, 0 ); |