Avoid ridiculously small decode_buffer_size (e.g. 4 with acodec=pcm_s16le)

that can make -oac lavc unusable.


git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@28963 b3059339-0415-0410-9bf9-f77b7e298cf2
This commit is contained in:
reimar 2009-03-15 16:37:06 +00:00
parent 37c6f0d36c
commit 093fc5508b
1 changed files with 1 additions and 0 deletions

View File

@ -248,6 +248,7 @@ int mpae_init_lavc(audio_encoder_t *encoder)
}
encoder->decode_buffer_size = lavc_actx->frame_size * 2 * encoder->params.channels;
while (encoder->decode_buffer_size < 1024) encoder->decode_buffer_size *= 2;
encoder->bind = bind_lavc;
encoder->get_frame_size = get_frame_size;
encoder->encode = encode_lavc;