FreeBSD / dvd input

Samuel Hocevar sam at zoy.org
Thu May 24 19:18:42 CEST 2001


On Sun, May 20, 2001, German Tischler wrote:

> !       unsigned char * tmem1 = malloc(2*DVD_LB_SIZE);

   Be careful, this is a very uneffective call.

   You should try to malloc() this buffer at the beginning and always
use the same memory area. For instance, add a new "u8 *p_buffer;" entry
to the p_dvd structure, allocate it in DVDInit and free it in DVDEnd.

-- 
Sam.




More information about the vlc mailing list