Commit b28de531 authored by gbazin's avatar gbazin

* modules/audio_filter/converter/*: a couple of fixes for transcoding.

parent 9e267491
......@@ -471,7 +471,7 @@ static block_t *Convert( filter_t *p_filter, block_t *p_block )
i_out_size = p_block->i_samples *
p_filter->fmt_out.audio.i_bitspersample *
p_filter->fmt_out.audio.i_channels;
p_filter->fmt_out.audio.i_channels / 8;
p_out = p_filter->pf_audio_buffer_new( p_filter, i_out_size );
if( !p_out )
......@@ -502,6 +502,7 @@ static block_t *Convert( filter_t *p_filter, block_t *p_block )
DoWork( (aout_instance_t *)p_filter, &aout_filter, &in_buf, &out_buf );
p_out->i_buffer = out_buf.i_nb_bytes;
p_out->i_samples = out_buf.i_nb_samples;
p_block->pf_release( p_block );
......
......@@ -455,7 +455,7 @@ static block_t *Convert( filter_t *p_filter, block_t *p_block )
i_out_size = p_block->i_samples *
p_filter->fmt_out.audio.i_bitspersample *
p_filter->fmt_out.audio.i_channels;
p_filter->fmt_out.audio.i_channels / 8;
p_out = p_filter->pf_audio_buffer_new( p_filter, i_out_size );
if( !p_out )
......
......@@ -299,7 +299,7 @@ static block_t *Convert( filter_t *p_filter, block_t *p_block )
i_out_size = p_block->i_samples *
p_filter->fmt_out.audio.i_bitspersample *
p_filter->fmt_out.audio.i_channels;
p_filter->fmt_out.audio.i_channels / 8;
p_out = p_filter->pf_audio_buffer_new( p_filter, i_out_size );
if( !p_out )
......@@ -331,5 +331,8 @@ static block_t *Convert( filter_t *p_filter, block_t *p_block )
p_block->pf_release( p_block );
p_out->i_buffer = out_buf.i_nb_bytes;
p_out->i_samples = out_buf.i_nb_samples;
return p_out;
}
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