[vlc-devel] [PATCH] avcodec audio decoder: use libavcodec pts/dts

Rafaël Carré funman at videolan.org
Fri Jul 26 15:42:21 CEST 2013


Fixes #5767
---
 modules/codec/avcodec/audio.c | 2 ++
 1 file changed, 2 insertions(+)

diff --git a/modules/codec/avcodec/audio.c b/modules/codec/avcodec/audio.c
index d6c0313..70226fe 100644
--- a/modules/codec/avcodec/audio.c
+++ b/modules/codec/avcodec/audio.c
@@ -295,6 +295,8 @@ block_t * DecodeAudio ( decoder_t *p_dec, block_t **pp_block )
         assert( p_block->i_buffer >= (unsigned)used );
         p_block->p_buffer += used;
         p_block->i_buffer -= used;
+        p_block->i_pts = pkt.pts;
+        p_block->i_dts = pkt.dts;
     }
 
     if( ctx->channels <= 0 || ctx->channels > 8 || ctx->sample_rate <= 0 )
-- 
1.8.1.2



More information about the vlc-devel mailing list