mirror of
https://github.com/mpv-player/mpv
synced 2025-01-04 22:20:22 +00:00
using shmem_alloc instead of malloc
git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@415 b3059339-0415-0410-9bf9-f77b7e298cf2
This commit is contained in:
parent
04ac545ecd
commit
e9181566a6
@ -240,7 +240,7 @@ int init_video_codec(){
|
||||
}
|
||||
#endif
|
||||
|
||||
sh_video->our_out_buffer = malloc(sh_video->o_bih.biSizeImage);
|
||||
sh_video->our_out_buffer = shmem_alloc(sh_video->o_bih.biSizeImage);
|
||||
if(!sh_video->our_out_buffer){
|
||||
printf("not enough memory for decoded picture buffer (%d bytes)\n", sh_video->o_bih.biSizeImage);
|
||||
return 0;
|
||||
|
Loading…
Reference in New Issue
Block a user