mirror of
https://github.com/FFmpeg/FFmpeg.git
synced 2025-03-23 04:24:35 +02:00
add #if CONFIG_ZLIB_DECODER around zlib_decomp function.
Fixes compilation when zlib is not available. Originally committed as revision 19069 to svn://svn.ffmpeg.org/ffmpeg/trunk
This commit is contained in:
parent
79183d3c3e
commit
24dd21fa41
@ -124,6 +124,7 @@ static unsigned int mszh_decomp(const unsigned char * srcptr, int srclen, unsign
|
|||||||
* \param offset offset in decomp_buf
|
* \param offset offset in decomp_buf
|
||||||
* \param expected expected decompressed length
|
* \param expected expected decompressed length
|
||||||
*/
|
*/
|
||||||
|
#if CONFIG_ZLIB_DECODER
|
||||||
static int zlib_decomp(AVCodecContext *avctx, const uint8_t *src, int src_len, int offset, int expected)
|
static int zlib_decomp(AVCodecContext *avctx, const uint8_t *src, int src_len, int offset, int expected)
|
||||||
{
|
{
|
||||||
LclDecContext *c = avctx->priv_data;
|
LclDecContext *c = avctx->priv_data;
|
||||||
@ -148,6 +149,7 @@ static int zlib_decomp(AVCodecContext *avctx, const uint8_t *src, int src_len, i
|
|||||||
}
|
}
|
||||||
return c->zstream.total_out;
|
return c->zstream.total_out;
|
||||||
}
|
}
|
||||||
|
#endif
|
||||||
|
|
||||||
|
|
||||||
/*
|
/*
|
||||||
|
Loading…
x
Reference in New Issue
Block a user