Browse Source

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

abort()

Originally committed as revision 11546 to svn://svn.ffmpeg.org/ffmpeg/trunk
tags/v0.5
Michael Niedermayer 18 years ago
parent
commit
76d7c327eb
2 changed files with 2 additions and 2 deletions
  1. +1
    -1
      libavcodec/gif.c
  2. +1
    -1
      libavformat/gif.c

+ 1
- 1
libavcodec/gif.c View 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) {


+ 1
- 1
libavformat/gif.c View 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) {


Loading…
Cancel
Save