Browse Source

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}'
pull/2/head
Ilkka Ollakka 19 years ago
parent
commit
cf05c96ca5
  1. 1
      modules/codec/ffmpeg/encoder.c

1
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 );

Loading…
Cancel
Save