Mercurial > libavcodec.hg
comparison gif.c @ 6152:448466ff832a libavcodec
Replace idiotic (what moron wrote that code?) "buffer overflow" message by
abort()
author | michael |
---|---|
date | Thu, 17 Jan 2008 00:12:04 +0000 |
parents | bff60ecc02f9 |
children | 48759bfbd073 |
comparison
equal
deleted
inserted
replaced
6151:2af9eab80fad | 6152:448466ff832a |
---|---|
134 | 134 |
135 bytestream_put_le32(&s->buf_ptr, bit_buf); | 135 bytestream_put_le32(&s->buf_ptr, bit_buf); |
136 | 136 |
137 //printf("bitbuf = %08x\n", bit_buf); | 137 //printf("bitbuf = %08x\n", bit_buf); |
138 if (s->buf_ptr >= s->buf_end) | 138 if (s->buf_ptr >= s->buf_end) |
139 puts("bit buffer overflow !!"); // should never happen ! who got rid of the callback ??? | 139 abort(); |
140 // flush_buffer_rev(s); | 140 // flush_buffer_rev(s); |
141 bit_cnt=bit_cnt + n - 32; | 141 bit_cnt=bit_cnt + n - 32; |
142 if (bit_cnt == 0) { | 142 if (bit_cnt == 0) { |
143 bit_buf = 0; | 143 bit_buf = 0; |
144 } else { | 144 } else { |