diff options
author | Michael Niedermayer <michaelni@gmx.at> | 2005-06-03 08:48:10 +0000 |
---|---|---|
committer | Michael Niedermayer <michaelni@gmx.at> | 2005-06-03 08:48:10 +0000 |
commit | 0f0680c553cd462b0bfe5bf8016a8ba8a14e9965 (patch) | |
tree | 98c3b0d96d0a2b10f794705f13fda918e7903e96 /libavformat/aviobuf.c | |
parent | 84adb95ac214fb7a3b6b2ff46a7dfaf6510e77cd (diff) | |
download | ffmpeg-streaming-0f0680c553cd462b0bfe5bf8016a8ba8a14e9965.zip ffmpeg-streaming-0f0680c553cd462b0bfe5bf8016a8ba8a14e9965.tar.gz |
10l (segfault fix)
Originally committed as revision 4341 to svn://svn.ffmpeg.org/ffmpeg/trunk
Diffstat (limited to 'libavformat/aviobuf.c')
-rw-r--r-- | libavformat/aviobuf.c | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/libavformat/aviobuf.c b/libavformat/aviobuf.c index 06da44d..55fa57c 100644 --- a/libavformat/aviobuf.c +++ b/libavformat/aviobuf.c @@ -272,7 +272,8 @@ static void fill_buffer(ByteIOContext *s) return; if(s->update_checksum){ - s->checksum= s->update_checksum(s->checksum, s->checksum_ptr, s->buf_end - s->checksum_ptr); + if(s->buf_end > s->checksum_ptr) + s->checksum= s->update_checksum(s->checksum, s->checksum_ptr, s->buf_end - s->checksum_ptr); s->checksum_ptr= s->buffer; } |