Commit cf05c96c authored by Ilkka Ollakka's avatar Ilkka Ollakka

Patch from Alex Antropoff, put block_align in use. Fixes wma1-encoding,

example sout: '#transcode{acodec=wma1,samplerate=22050,ab=96,channels=2}\
:std{access=mmsh,mux=asfh,dst=:18080}'
parent 61449225
...@@ -619,6 +619,7 @@ int E_(OpenEncoder)( vlc_object_t *p_this ) ...@@ -619,6 +619,7 @@ int E_(OpenEncoder)( vlc_object_t *p_this )
p_sys->p_buffer_out = malloc( 2 * AVCODEC_MAX_AUDIO_FRAME_SIZE ); p_sys->p_buffer_out = malloc( 2 * AVCODEC_MAX_AUDIO_FRAME_SIZE );
p_sys->i_frame_size = p_context->frame_size * 2 * p_context->channels; p_sys->i_frame_size = p_context->frame_size * 2 * p_context->channels;
p_sys->p_buffer = malloc( p_sys->i_frame_size ); p_sys->p_buffer = malloc( p_sys->i_frame_size );
p_enc->fmt_out.audio.i_blockalign = p_context->block_align;
} }
msg_Dbg( p_enc, "found encoder %s", psz_namecodec ); msg_Dbg( p_enc, "found encoder %s", psz_namecodec );
......
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