Commit 9941767b authored by Jean-Baptiste Kempf's avatar Jean-Baptiste Kempf

CDDB: add the correct pregap for calculation

150sectors or 2 seconds

Should close #4370

(cherry picked from commit a4271ec9be0f0235b8fc9010e6135afc2365136a)
Signed-off-by: default avatarJean-Baptiste Kempf <jb@videolan.org>
parent 2474f613
......@@ -652,11 +652,12 @@ static cddb_disc_t *GetCDDBInfo( access_t *p_access, int i_titles, int *p_sector
goto error;
}
int64_t i_length = 0;
int64_t i_length = 2000000; /* PreGap */
for( int i = 0; i < i_titles; i++ )
{
cddb_track_t *t = cddb_track_new();
cddb_track_set_frame_offset( t, p_sectors[i] );
cddb_track_set_frame_offset( t, p_sectors[i] + 150 ); /* Pregap offset */
cddb_disc_add_track( p_disc, t );
const int64_t i_size = ( p_sectors[i+1] - p_sectors[i] ) *
(int64_t)CDDA_DATA_SIZE;
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment