X-Git-Url: http://rtime.felk.cvut.cz/gitweb/frescor/ffmpeg.git/blobdiff_plain/964a75e3a09560140453aecd74247bde6d61dd9e..6eff4327955747dd3633b6b82ce39cfab817ce5a:/libavformat/aviobuf.c diff --git a/libavformat/aviobuf.c b/libavformat/aviobuf.c index 690ac9aac..f270139a9 100644 --- a/libavformat/aviobuf.c +++ b/libavformat/aviobuf.c @@ -24,8 +24,6 @@ #include "avformat.h" #include "avio.h" #include -#include -#include #define IO_BUFFER_SIZE 32768 @@ -540,7 +538,7 @@ int url_fdopen(ByteIOContext **s, URLContext *h) } else { buffer_size = IO_BUFFER_SIZE; } - buffer = memalign(sysconf(_SC_PAGESIZE), buffer_size); + buffer = av_malloc(buffer_size); if (!buffer) return AVERROR(ENOMEM);