From b25514a43f8780a13de5f09cb45c6046a60f4447 Mon Sep 17 00:00:00 2001 From: Xiaohui Sun Date: Tue, 3 Apr 2007 06:40:21 +0000 Subject: 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 --- libavcodec/targaenc.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'libavcodec/targaenc.c') 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; } -- cgit v1.2.3