From deca52.c:178-181
Code: Select all
/* 6 blocks per frame, 256 samples per block, 2 channels */
buf = hb_buffer_init( 3072 * sizeof( float ) );
buf->start = pts + ( pos / pv->size ) * 6 * 256 * 90000 / pv->rate;
buf->stop = buf->start + 6 * 256 * 90000 / pv->rate;
I assume the 6 and 256 below that are the blocks and samples. What is the 90000 about, though?
Again a52dec.c:190
Code: Select all
samples_out = ((float *) buf->data) + 512 * i;
This time encfaac.c:121-122, again we have the 90000.
Code: Select all
buf->start = pts + 90000 * pos / 2 / sizeof( float ) / pv->job->arate;
buf->stop = buf->start + 90000 * pv->input_samples / pv->job->arate / 2;