[vlc-commits] packetizer/mlp: fill fmt_out and i_nb_samples
Thomas Guillem
git at videolan.org
Wed Oct 5 18:19:04 CEST 2016
vlc | branch: master | Thomas Guillem <thomas at gllm.fr> | Wed Oct 5 15:44:59 2016 +0200| [11c7b8d8984477361ae50e6dc282855b9de0df9b] | committer: Thomas Guillem
packetizer/mlp: fill fmt_out and i_nb_samples
> http://git.videolan.org/gitweb.cgi/vlc.git/?a=commit;h=11c7b8d8984477361ae50e6dc282855b9de0df9b
---
modules/packetizer/mlp.c | 3 +++
1 file changed, 3 insertions(+)
diff --git a/modules/packetizer/mlp.c b/modules/packetizer/mlp.c
index 956cbe3..4f1240a 100644
--- a/modules/packetizer/mlp.c
+++ b/modules/packetizer/mlp.c
@@ -424,8 +424,11 @@ static block_t *Packetize( decoder_t *p_dec, block_t **pp_block )
p_dec->fmt_out.audio.i_channels = p_sys->mlp.i_channels;
p_dec->fmt_out.audio.i_original_channels = p_sys->mlp.i_channels_conf;
p_dec->fmt_out.audio.i_physical_channels = p_sys->mlp.i_channels_conf;
+ p_dec->fmt_out.audio.i_bytes_per_frame = p_sys->i_frame_size;
+ p_dec->fmt_out.audio.i_frame_length = p_sys->mlp.i_samples;
p_out_buffer->i_pts = p_out_buffer->i_dts = date_Get( &p_sys->end_date );
+ p_out_buffer->i_nb_samples = p_sys->mlp.i_samples;
p_out_buffer->i_length =
date_Increment( &p_sys->end_date, p_sys->mlp.i_samples ) - p_out_buffer->i_pts;
More information about the vlc-commits
mailing list