Lines 10-17
Link Here
|
10 |
#include <lzo1x.h> |
10 |
#include <lzo1x.h> |
11 |
#else |
11 |
#else |
12 |
#include "native/minilzo.h" |
12 |
#include "native/minilzo.h" |
13 |
#define lzo_malloc malloc |
|
|
14 |
#define lzo_free free |
15 |
#endif |
13 |
#endif |
16 |
|
14 |
|
17 |
#define MOD_NAME "DecLZO" |
15 |
#define MOD_NAME "DecLZO" |
Lines 66-72
Link Here
|
66 |
priv->codec = -1; |
64 |
priv->codec = -1; |
67 |
sh->context = priv; |
65 |
sh->context = priv; |
68 |
|
66 |
|
69 |
priv->wrkmem = (lzo_bytep) lzo_malloc(LZO1X_1_MEM_COMPRESS); |
67 |
priv->wrkmem = (lzo_bytep) malloc(LZO1X_1_MEM_COMPRESS); |
70 |
|
68 |
|
71 |
if (priv->wrkmem == NULL) { |
69 |
if (priv->wrkmem == NULL) { |
72 |
mp_msg (MSGT_DECVIDEO, MSGL_ERR, "[%s] Cannot alloc work memory\n", MOD_NAME); |
70 |
mp_msg (MSGT_DECVIDEO, MSGL_ERR, "[%s] Cannot alloc work memory\n", MOD_NAME); |
Lines 84-90
Link Here
|
84 |
if (priv) |
82 |
if (priv) |
85 |
{ |
83 |
{ |
86 |
if (priv->wrkmem) |
84 |
if (priv->wrkmem) |
87 |
lzo_free(priv->wrkmem); |
85 |
free(priv->wrkmem); |
88 |
free(priv); |
86 |
free(priv); |
89 |
} |
87 |
} |
90 |
|
88 |
|
Lines 112-118
Link Here
|
112 |
|
110 |
|
113 |
// decompress one frame to see if its |
111 |
// decompress one frame to see if its |
114 |
// either YV12 or RGB24 |
112 |
// either YV12 or RGB24 |
115 |
if (!tmp) tmp = lzo_malloc(sh->bih->biSizeImage); |
113 |
if (!tmp) tmp = malloc(sh->bih->biSizeImage); |
116 |
|
114 |
|
117 |
mp_msg (MSGT_DECVIDEO, MSGL_V, "[%s] 2 depth %d, format %d data %p len (%d) (%d)\n", |
115 |
mp_msg (MSGT_DECVIDEO, MSGL_V, "[%s] 2 depth %d, format %d data %p len (%d) (%d)\n", |
118 |
MOD_NAME, sh->bih->biBitCount, sh->format, data, len, sh->bih->biSizeImage |
116 |
MOD_NAME, sh->bih->biBitCount, sh->format, data, len, sh->bih->biSizeImage |