projects
/
platform
/
upstream
/
libav.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
bc0f7a9
)
Simplify zero run handling in put_line().
author
Michael Niedermayer
<michaelni@gmx.at>
Fri, 26 Dec 2008 13:51:52 +0000
(13:51 +0000)
committer
Michael Niedermayer
<michaelni@gmx.at>
Fri, 26 Dec 2008 13:51:52 +0000
(13:51 +0000)
Originally committed as revision 16328 to svn://svn.ffmpeg.org/ffmpeg/trunk
libavcodec/faxcompr.c
patch
|
blob
|
history
diff --git
a/libavcodec/faxcompr.c
b/libavcodec/faxcompr.c
index
f53c64b
..
b5f6598
100644
(file)
--- a/
libavcodec/faxcompr.c
+++ b/
libavcodec/faxcompr.c
@@
-238,12
+238,10
@@
static void put_line(uint8_t *dst, int size, int width, const int *runs)
while(pix_left > 0){
run = runs[run_idx++];
mode = ~mode;
- if(!run){
- continue;
- }
pix_left -= run;
for(; run > 16; run -= 16)
put_sbits(&pb, 16, mode);
+ if(run)
put_sbits(&pb, run, mode);
}
}