mirror of https://git.ffmpeg.org/ffmpeg.git
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,6 +272,7 @@ static void fill_buffer(ByteIOContext *s)
|
||||||
return;
|
return;
|
||||||
|
|
||||||
if(s->update_checksum){
|
if(s->update_checksum){
|
||||||
|
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= s->update_checksum(s->checksum, s->checksum_ptr, s->buf_end - s->checksum_ptr);
|
||||||
s->checksum_ptr= s->buffer;
|
s->checksum_ptr= s->buffer;
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue