mirror of
https://git.ffmpeg.org/ffmpeg.git
synced 2024-12-25 16:52:31 +00:00
10l (segfault fix)
Originally committed as revision 4341 to svn://svn.ffmpeg.org/ffmpeg/trunk
This commit is contained in:
parent
84adb95ac2
commit
0f0680c553
@ -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;
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user