changeset 1744:d01772d1bf55 libavcodec

Right fix for older zlib version
author rtognimp
date Tue, 13 Jan 2004 20:26:44 +0000
parents fa06a4a448f7
children fe5e2c14a04c
files lcl.c
diffstat 1 files changed, 0 insertions(+), 4 deletions(-) [+]
line wrap: on
line diff
--- a/lcl.c	Tue Jan 13 19:46:37 2004 +0000
+++ b/lcl.c	Tue Jan 13 20:26:44 2004 +0000
@@ -797,10 +797,6 @@
         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;