OSDN Git Service

Replace idiotic (what moron wrote that code?) "buffer overflow" message by
authorMichael Niedermayer <michaelni@gmx.at>
Thu, 17 Jan 2008 00:12:04 +0000 (00:12 +0000)
committerMichael Niedermayer <michaelni@gmx.at>
Thu, 17 Jan 2008 00:12:04 +0000 (00:12 +0000)
abort()

Originally committed as revision 11546 to svn://svn.ffmpeg.org/ffmpeg/trunk

libavcodec/gif.c
libavformat/gif.c

index c22a418..ee3a139 100644 (file)
@@ -136,7 +136,7 @@ static void gif_put_bits_rev(PutBitContext *s, int n, unsigned int value)
 
         //printf("bitbuf = %08x\n", bit_buf);
         if (s->buf_ptr >= s->buf_end)
-            puts("bit buffer overflow !!"); // should never happen ! who got rid of the callback ???
+            abort();
 //            flush_buffer_rev(s);
         bit_cnt=bit_cnt + n - 32;
         if (bit_cnt == 0) {
index 8092f37..7b71fae 100644 (file)
@@ -137,7 +137,7 @@ static void gif_put_bits_rev(PutBitContext *s, int n, unsigned int value)
         //printf("bitbuf = %08x\n", bit_buf);
         s->buf_ptr+=4;
         if (s->buf_ptr >= s->buf_end)
-            puts("bit buffer overflow !!"); // should never happen ! who got rid of the callback ???
+            abort();
 //            flush_buffer_rev(s);
         bit_cnt=bit_cnt + n - 32;
         if (bit_cnt == 0) {