mirror of
https://gitee.com/openharmony/third_party_ffmpeg
synced 2024-11-27 21:20:41 +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