[FFmpeg-cvslog] r11546 - in trunk: libavcodec/gif.c libavformat/gif.c

michael subversion
Thu Jan 17 01:12:05 CET 2008


Author: michael
Date: Thu Jan 17 01:12:04 2008
New Revision: 11546

Log:
Replace idiotic (what moron wrote that code?) "buffer overflow" message by
abort()


Modified:
   trunk/libavcodec/gif.c
   trunk/libavformat/gif.c

Modified: trunk/libavcodec/gif.c
==============================================================================
--- trunk/libavcodec/gif.c	(original)
+++ trunk/libavcodec/gif.c	Thu Jan 17 01:12:04 2008
@@ -136,7 +136,7 @@ static void gif_put_bits_rev(PutBitConte
 
         //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) {

Modified: trunk/libavformat/gif.c
==============================================================================
--- trunk/libavformat/gif.c	(original)
+++ trunk/libavformat/gif.c	Thu Jan 17 01:12:04 2008
@@ -137,7 +137,7 @@ static void gif_put_bits_rev(PutBitConte
         //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) {




More information about the ffmpeg-cvslog mailing list