blob: d7d17986f221ea5ab1e0230ce518bdd45b776a46 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
|
--- decode.c.orig Wed Dec 4 22:40:42 2002
+++ decode.c Sat Dec 14 07:25:35 2002
@@ -8,7 +8,6 @@
#include "mm_accel.h"
#include "attributes.h"
#include "mmx.h"
-#include "malloc.h"
extern FILE* log;
@@ -21,7 +20,7 @@
Mpeg2dec::Mpeg2dec(uint32_t mm_accel)
{
config.flags = mm_accel;
- picture = (picture_t*)memalign (16, sizeof (picture_t));
+ picture = (picture_t*)malloc(sizeof (picture_t));
memset(picture, 0, sizeof (picture_t));
frames = 0;
frame_ptr[0] = 0;
@@ -63,7 +62,7 @@
int size = width() * height() / 4;
if (frames)
free(frames);
- frames = (unsigned char*)memalign(64, size*18);
+ frames = (unsigned char*)malloc(size*18);
unsigned char* alloc = frames;
for (int i = 0; i < 3; i++) {
|