diff options
author | van <[email protected]> | 2008-04-06 22:58:04 +0000 |
---|---|---|
committer | van <[email protected]> | 2008-04-06 22:58:04 +0000 |
commit | ce3d163596c85310131033a73569494ad8a3a759 (patch) | |
tree | b06d82c7e6e6dee0fc0fa4cd6a31d399c576e119 | |
parent | ed989b753d79f018c9d955e5e7f518b25ac8ab51 (diff) |
During conversion only log when there's an error or anomaly.
git-svn-id: svn://svn.handbrake.fr/HandBrake/trunk@1383 b64f7644-9d1e-0410-96f1-a4d463321fa5
-rw-r--r-- | libhb/dvd.c | 17 |
1 files changed, 12 insertions, 5 deletions
diff --git a/libhb/dvd.c b/libhb/dvd.c index cca1e8003..8e6c1feae 100644 --- a/libhb/dvd.c +++ b/libhb/dvd.c @@ -868,11 +868,14 @@ int hb_dvd_read( hb_dvd_t * d, hb_buffer_t * b ) } else { - hb_log( "dvd: Beginning of Cell (%d) at block %d", d->cell_cur, - d->block ); + if ( d->block != d->pgc->cell_playback[d->cell_cur].first_sector ) + { + hb_log( "dvd: beginning of cell %d at block %d", d->cell_cur, + d->block ); + } if( d->in_cell ) { - hb_error( "dvd: Assuming missed End of Cell (%d)", d->cell_cur ); + hb_error( "dvd: assuming missed end of cell %d", d->cell_cur ); d->cell_cur = d->cell_next; d->next_vobu = d->pgc->cell_playback[d->cell_cur].first_sector; FindNextCell( d ); @@ -895,8 +898,12 @@ int hb_dvd_read( hb_dvd_t * d, hb_buffer_t * b ) if( ( dsi_pack.vobu_sri.next_vobu & (1 << 31 ) ) == 0 || ( dsi_pack.vobu_sri.next_vobu & 0x3fffffff ) == 0x3fffffff ) { - hb_log( "dvd: End of Cell (%d) at block %d", d->cell_cur, - d->block ); + if ( d->block <= d->pgc->cell_playback[d->cell_cur].first_sector || + d->block > d->pgc->cell_playback[d->cell_cur].last_sector ) + { + hb_log( "dvd: end of cell %d at block %d", d->cell_cur, + d->block ); + } d->cell_cur = d->cell_next; d->in_cell = 0; d->next_vobu = d->pgc->cell_playback[d->cell_cur].first_sector; |