From cf05c96ca52d7beb20130a083df7b95ffa4e7e69 Mon Sep 17 00:00:00 2001 From: Ilkka Ollakka Date: Sun, 9 Sep 2007 17:27:17 +0000 Subject: [PATCH] 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}' --- modules/codec/ffmpeg/encoder.c | 1 + 1 file changed, 1 insertion(+) diff --git a/modules/codec/ffmpeg/encoder.c b/modules/codec/ffmpeg/encoder.c index 4823c8a270..b40503e090 100644 --- a/modules/codec/ffmpeg/encoder.c +++ b/modules/codec/ffmpeg/encoder.c @@ -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->i_frame_size = p_context->frame_size * 2 * p_context->channels; 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 );