[vlc-commits] avcodec: increment frame->nb_samples, just in case
Ilkka Ollakka
git at videolan.org
Sun Nov 3 11:35:38 CET 2013
vlc | branch: master | Ilkka Ollakka <ileoo at videolan.org> | Sun Nov 3 12:29:56 2013 +0200| [aa0f2272ddc37470001f636605201e88095f7b49] | committer: Ilkka Ollakka
avcodec: increment frame->nb_samples, just in case
> http://git.videolan.org/gitweb.cgi/vlc.git/?a=commit;h=aa0f2272ddc37470001f636605201e88095f7b49
---
modules/codec/avcodec/encoder.c | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/modules/codec/avcodec/encoder.c b/modules/codec/avcodec/encoder.c
index c5d70e8..cd04ad9 100644
--- a/modules/codec/avcodec/encoder.c
+++ b/modules/codec/avcodec/encoder.c
@@ -1167,7 +1167,7 @@ static block_t *handle_delay_buffer( encoder_t *p_enc, encoder_sys_t *p_sys, int
p_sys->frame->pts = date_Get( &p_sys->buffer_date );
if( likely( p_sys->frame->pts != AV_NOPTS_VALUE) )
- date_Increment( &p_sys->buffer_date, p_sys->i_frame_size );
+ date_Increment( &p_sys->buffer_date, p_sys->frame->nb_samples );
if( likely( p_aout_buf ) )
{
More information about the vlc-commits
mailing list