Commit 71e82d26 authored by Rafaël Carré's avatar Rafaël Carré

copy packetizer: don't overwrite i_length for opus

this field is used as end trimming

Refs: #8295
parent c18f650a
......@@ -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;
......
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