Commit 381dceac authored by michael's avatar michael

10l (segfault fix)


git-svn-id: file:///var/local/repositories/ffmpeg/trunk@4341 9553f0bf-9b14-0410-a0b8-cfaf0461ba5b
parent c4d08039
...@@ -272,7 +272,8 @@ static void fill_buffer(ByteIOContext *s) ...@@ -272,7 +272,8 @@ static void fill_buffer(ByteIOContext *s)
return; return;
if(s->update_checksum){ 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; s->checksum_ptr= s->buffer;
} }
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment