projects
/
libav.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
ccbfd4b
)
Right fix for older zlib version
author
Roberto Togni
<r_togni@tiscali.it>
Tue, 13 Jan 2004 20:26:44 +0000
(20:26 +0000)
committer
Roberto Togni
<r_togni@tiscali.it>
Tue, 13 Jan 2004 20:26:44 +0000
(20:26 +0000)
Originally committed as revision 2696 to svn://svn.ffmpeg.org/ffmpeg/trunk
libavcodec/lcl.c
patch
|
blob
|
blame
|
history
diff --git
a/libavcodec/lcl.c
b/libavcodec/lcl.c
index
7a406e5
..
9a8591a
100644
(file)
--- a/
libavcodec/lcl.c
+++ b/
libavcodec/lcl.c
@@
-797,10
+797,6
@@
static int encode_init(AVCodecContext *avctx)
return 1;
}
- if ((strlen(zlibVersion()) > 4) && (zlibVersion()[0] >= '1') && (zlibVersion()[2] >= '2')&&
- (zlibVersion()[4] >= '0'))
- c->max_comp_size = deflateBound(&(c->zstream), c->decomp_size);
- else
/* Conservative upper bound taken from zlib v1.2.1 source */
c->max_comp_size = c->decomp_size + ((c->decomp_size + 7) >> 3) +
((c->decomp_size + 63) >> 6) + 11;