diff options
author | Michael Niedermayer <michaelni@gmx.at> | 2013-08-14 22:56:56 +0200 |
---|---|---|
committer | Michael Niedermayer <michaelni@gmx.at> | 2013-08-14 23:15:54 +0200 |
commit | 1a53ddd9a2951a51be28a780f6aed0e0620f9cae (patch) | |
tree | dc212b39bee5a7f16379ddc5489cdc0c9d158ed1 | |
parent | 796b20fa1cef691f2a74215b5a33b722c307d21f (diff) | |
download | ffmpeg-streaming-1a53ddd9a2951a51be28a780f6aed0e0620f9cae.zip ffmpeg-streaming-1a53ddd9a2951a51be28a780f6aed0e0620f9cae.tar.gz |
avcodec/lzwenc: change asserts to av_asserts
Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
-rw-r--r-- | libavcodec/lzwenc.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/libavcodec/lzwenc.c b/libavcodec/lzwenc.c index 0599d64..d5a07bc 100644 --- a/libavcodec/lzwenc.c +++ b/libavcodec/lzwenc.c @@ -111,7 +111,7 @@ static inline int hashOffset(const int head) */ static inline void writeCode(LZWEncodeState * s, int c) { - assert(0 <= c && c < 1 << s->bits); + av_assert2(0 <= c && c < 1 << s->bits); s->put_bits(&s->pb, s->bits, c); } @@ -207,7 +207,7 @@ void ff_lzw_encode_init(LZWEncodeState *s, uint8_t *outbuf, int outsize, s->maxbits = maxbits; init_put_bits(&s->pb, outbuf, outsize); s->bufsize = outsize; - assert(s->maxbits >= 9 && s->maxbits <= LZW_MAXBITS); + av_assert0(s->maxbits >= 9 && s->maxbits <= LZW_MAXBITS); s->maxcode = 1 << s->maxbits; s->output_bytes = 0; s->last_code = LZW_PREFIX_EMPTY; |