Commit 218f8cec authored by Ilkka Ollakka's avatar Ilkka Ollakka

fdkaac: output length is constant and doesn't vary from input pts jitter

parent 9d4539fc
......@@ -503,9 +503,9 @@ static block_t *EncodeAudio( encoder_t *p_enc, block_t *p_aout_buf )
(double)p_enc->fmt_in.audio.i_channels;
i_pts_out -= (mtime_t)((double)CLOCK_FREQ * d_samples_delay /
(double)p_enc->fmt_out.audio.i_rate);
//p_block->i_length = (mtime_t)((double)CLOCK_FREQ * (double)p_sys->i_frame_size /
// (double)p_enc->fmt_out.audio.i_rate);
p_block->i_length = i_pts_out - p_sys->i_pts_last;
p_block->i_length = (mtime_t)((double)CLOCK_FREQ * (double)p_sys->i_frame_size /
(double)p_enc->fmt_out.audio.i_rate);
//p_block->i_length = i_pts_out - p_sys->i_pts_last;
}
else
{
......
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