mirror of
https://github.com/mpv-player/mpv
synced 2025-01-24 19:37:30 +01:00
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:
parent
37c6f0d36c
commit
093fc5508b
@ -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;
|
||||
|
Loading…
Reference in New Issue
Block a user