[vlc-commits] fdkaac: output length is constant and doesn't vary from input pts jitter
Ilkka Ollakka
git at videolan.org
Fri Mar 21 10:53:59 CET 2014
vlc | branch: master | Ilkka Ollakka <ileoo at videolan.org> | Fri Mar 21 11:49:06 2014 +0200| [218f8cec6805f10030b3a7421ce4e98604034819] | committer: Ilkka Ollakka
fdkaac: output length is constant and doesn't vary from input pts jitter
> http://git.videolan.org/gitweb.cgi/vlc.git/?a=commit;h=218f8cec6805f10030b3a7421ce4e98604034819
---
modules/codec/fdkaac.c | 6 +++---
1 file changed, 3 insertions(+), 3 deletions(-)
diff --git a/modules/codec/fdkaac.c b/modules/codec/fdkaac.c
index 7d6b88f..297f8dc 100644
--- a/modules/codec/fdkaac.c
+++ b/modules/codec/fdkaac.c
@@ -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
{
More information about the vlc-commits
mailing list