diff options
author | Xiaohui Sun | 2007-04-03 06:40:21 +0000 |
---|---|---|
committer | Michael Niedermayer | 2007-04-03 06:40:21 +0000 |
commit | b25514a43f8780a13de5f09cb45c6046a60f4447 (patch) | |
tree | d912bdb78e1361fffe86570059c8cfde3b8f6152 /libavcodec/targaenc.c | |
parent | 65df54496e86cdb46948b3c15df4ba91d2927ceb (diff) |
Changed the rle encoder a little and made it more universal.
Not only the repeated byte is calculated as (count ^ xor) + add
but also the raw encoding lenth byte is calculated as that too
patch by Xiaohui Sun sunxiaohui dsp ac cn
Originally committed as revision 8602 to svn://svn.ffmpeg.org/ffmpeg/trunk
Diffstat (limited to 'libavcodec/targaenc.c')
-rw-r--r-- | libavcodec/targaenc.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/libavcodec/targaenc.c b/libavcodec/targaenc.c index 72d27dce15..8852d0d638 100644 --- a/libavcodec/targaenc.c +++ b/libavcodec/targaenc.c @@ -41,7 +41,7 @@ static int targa_encode_rle(uint8_t *outbuf, int out_size, AVFrame *pic, out = outbuf; for(y = 0; y < h; y ++) { - ret = ff_rle_encode(out, out_size, pic->data[0] + pic->linesize[0] * y, bpp, w, 0x7f, 0); + ret = ff_rle_encode(out, out_size, pic->data[0] + pic->linesize[0] * y, bpp, w, 0x7f, 0, -1, 0); if(ret == -1){ return -1; } |