projects
/
ffmpeg.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
eb24fd6
)
cosmetic
author
Michael Niedermayer
<michaelni@gmx.at>
Tue, 3 Apr 2007 02:18:00 +0000
(
02:18
+0000)
committer
Michael Niedermayer
<michaelni@gmx.at>
Tue, 3 Apr 2007 02:18:00 +0000
(
02:18
+0000)
Originally committed as revision 8601 to svn://svn.ffmpeg.org/ffmpeg/trunk
libavcodec/rle.c
patch
|
blob
|
history
diff --git
a/libavcodec/rle.c
b/libavcodec/rle.c
index
b3d09fb
..
acbd1f4
100644
(file)
--- a/
libavcodec/rle.c
+++ b/
libavcodec/rle.c
@@
-58,9
+58,7
@@
static int count_pixels(const uint8_t *start, int len, int bpp, int same)
int ff_rle_encode(uint8_t *outbuf, int out_size, const uint8_t *ptr , int bpp, int w, int8_t add, uint8_t xor)
{
int count, x;
- uint8_t *out;
-
- out = outbuf;
+ uint8_t *out = outbuf;
for(x = 0; x < w; x += count) {
/* see if we can encode the next set of pixels with RLE */