#include "avformat.h"
#include "avio.h"
#include <stdarg.h>
-#include <malloc.h>
-#include <unistd.h>
#define IO_BUFFER_SIZE 32768
} else {
buffer_size = IO_BUFFER_SIZE;
}
- buffer = memalign(sysconf(_SC_PAGESIZE), buffer_size);
+ buffer = av_malloc(buffer_size);
if (!buffer)
return AVERROR(ENOMEM);