Make smush player works under PalmOS
svn-id: r9763
This commit is contained in:
parent
a3c5ba1da4
commit
d76b92d2b7
1 changed files with 2 additions and 2 deletions
|
@ -519,7 +519,7 @@ void Codec47Decoder::init(int width, int height) {
|
||||||
|
|
||||||
_frameSize = _width * _height;
|
_frameSize = _width * _height;
|
||||||
_deltaSize = _frameSize * 3;
|
_deltaSize = _frameSize * 3;
|
||||||
_deltaBuf = new byte[_deltaSize];
|
_deltaBuf = (byte *)malloc(_deltaSize);
|
||||||
_deltaBufs[0] = _deltaBuf;
|
_deltaBufs[0] = _deltaBuf;
|
||||||
_deltaBufs[1] = _deltaBuf + _frameSize;
|
_deltaBufs[1] = _deltaBuf + _frameSize;
|
||||||
_curBuf = _deltaBuf + _frameSize * 2;
|
_curBuf = _deltaBuf + _frameSize * 2;
|
||||||
|
@ -534,7 +534,7 @@ Codec47Decoder::Codec47Decoder() {
|
||||||
void Codec47Decoder::deinit() {
|
void Codec47Decoder::deinit() {
|
||||||
_lastTableWidth = -1;
|
_lastTableWidth = -1;
|
||||||
if (_deltaBuf) {
|
if (_deltaBuf) {
|
||||||
delete []_deltaBuf;
|
free(_deltaBuf);
|
||||||
_deltaSize = 0;
|
_deltaSize = 0;
|
||||||
_deltaBuf = 0;
|
_deltaBuf = 0;
|
||||||
_deltaBufs[0] = 0;
|
_deltaBufs[0] = 0;
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue