]> git.sesse.net Git - vlc/commitdiff
Patch from Alex Antropoff, put block_align in use. Fixes wma1-encoding,
authorIlkka Ollakka <ileoo@videolan.org>
Sun, 9 Sep 2007 17:27:17 +0000 (17:27 +0000)
committerIlkka Ollakka <ileoo@videolan.org>
Sun, 9 Sep 2007 17:27:17 +0000 (17:27 +0000)
example sout: '#transcode{acodec=wma1,samplerate=22050,ab=96,channels=2}\
:std{access=mmsh,mux=asfh,dst=:18080}'

modules/codec/ffmpeg/encoder.c

index 4823c8a270b60ea2247a715afee216508a8ed9d4..b40503e0900c9876e33b16350a00f6d8b22d66d7 100644 (file)
@@ -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 );