[vlc-commits] copy packetizer: don't overwrite i_length for opus
Rafaël Carré
git at videolan.org
Mon Jun 24 06:51:53 CEST 2013
vlc | branch: master | Rafaël Carré <funman at videolan.org> | Mon Jun 24 06:50:51 2013 +0200| [71e82d262907048ca04a68fe69b6276e0d6269b9] | committer: Rafaël Carré
copy packetizer: don't overwrite i_length for opus
this field is used as end trimming
Refs: #8295
> http://git.videolan.org/gitweb.cgi/vlc.git/?a=commit;h=71e82d262907048ca04a68fe69b6276e0d6269b9
---
modules/packetizer/copy.c | 3 ++-
1 file changed, 2 insertions(+), 1 deletion(-)
diff --git a/modules/packetizer/copy.c b/modules/packetizer/copy.c
index 6c90e0c..b5e0973 100644
--- a/modules/packetizer/copy.c
+++ b/modules/packetizer/copy.c
@@ -167,7 +167,8 @@ static block_t *Packetize ( decoder_t *p_dec, block_t **pp_block )
if( p_ret != NULL && p_block->i_pts > p_ret->i_pts )
{
- p_ret->i_length = p_block->i_pts - p_ret->i_pts;
+ if (p_dec->fmt_in.i_codec != VLC_CODEC_OPUS)
+ p_ret->i_length = p_block->i_pts - p_ret->i_pts;
}
p_dec->p_sys->p_block = p_block;
More information about the vlc-commits
mailing list