[MPlayer-cvslog] r28963 - trunk/libmpcodecs/ae_lavc.c

reimar subversion at mplayerhq.hu
Sun Mar 15 17:37:07 CET 2009


Author: reimar
Date: Sun Mar 15 17:37:06 2009
New Revision: 28963

Log:
Avoid ridiculously small decode_buffer_size (e.g. 4 with acodec=pcm_s16le)
that can make -oac lavc unusable.

Modified:
   trunk/libmpcodecs/ae_lavc.c

Modified: trunk/libmpcodecs/ae_lavc.c
==============================================================================
--- trunk/libmpcodecs/ae_lavc.c	Sun Mar 15 17:12:05 2009	(r28962)
+++ trunk/libmpcodecs/ae_lavc.c	Sun Mar 15 17:37:06 2009	(r28963)
@@ -248,6 +248,7 @@ int mpae_init_lavc(audio_encoder_t *enco
 	}
 
 	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;



More information about the MPlayer-cvslog mailing list