Mercurial > mplayer.hg
comparison dll_init.c @ 414:a8b17d1f2551
using shmem_alloc instead of malloc
author | arpi_esp |
---|---|
date | Sat, 14 Apr 2001 19:30:52 +0000 |
parents | b61c5c4484f8 |
children | 5251b0c57e39 |
comparison
equal
deleted
inserted
replaced
413:7785656abf11 | 414:a8b17d1f2551 |
---|---|
238 printf(" ret=%d\n",ret); | 238 printf(" ret=%d\n",ret); |
239 } | 239 } |
240 } | 240 } |
241 #endif | 241 #endif |
242 | 242 |
243 sh_video->our_out_buffer = malloc(sh_video->o_bih.biSizeImage); | 243 sh_video->our_out_buffer = shmem_alloc(sh_video->o_bih.biSizeImage); |
244 if(!sh_video->our_out_buffer){ | 244 if(!sh_video->our_out_buffer){ |
245 printf("not enough memory for decoded picture buffer (%d bytes)\n", sh_video->o_bih.biSizeImage); | 245 printf("not enough memory for decoded picture buffer (%d bytes)\n", sh_video->o_bih.biSizeImage); |
246 return 0; | 246 return 0; |
247 } | 247 } |
248 | 248 |