git-svn-id: svn://svn.handbrake.fr/HandBrake/branches/0.10.x@7107
b64f7644-9d1e-0410-96f1-
a4d463321fa5
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)
{
goto skip_preview;
}
total_read += buf->size;
+ packets++;
(hb_demux[title->demuxer])(buf, list_es, 0 );