projects
/
libav.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
|
inline
| side by side (parent:
ec5bdf4
)
Ensure that an invalid run terminates the line.
author
Michael Niedermayer
<michaelni@gmx.at>
Fri, 26 Dec 2008 14:57:42 +0000
(14:57 +0000)
committer
Michael Niedermayer
<michaelni@gmx.at>
Fri, 26 Dec 2008 14:57:42 +0000
(14:57 +0000)
Originally committed as revision 16331 to svn://svn.ffmpeg.org/ffmpeg/trunk
libavcodec/faxcompr.c
patch
|
blob
|
blame
|
history
diff --git
a/libavcodec/faxcompr.c
b/libavcodec/faxcompr.c
index
0853ed4
..
f8a8b93
100644
(file)
--- a/
libavcodec/faxcompr.c
+++ b/
libavcodec/faxcompr.c
@@
-136,7
+136,7
@@
static int decode_group3_1d_line(AVCodecContext *avctx, GetBitContext *gb,
if(pix_left <= 0){
if(!pix_left)
break;
if(pix_left <= 0){
if(!pix_left)
break;
- runs[-1]
= 0
;
+ runs[-1]
+= pix_left
;
av_log(avctx, AV_LOG_ERROR, "Run went out of bounds\n");
return -1;
}
av_log(avctx, AV_LOG_ERROR, "Run went out of bounds\n");
return -1;
}