mirror of
https://github.com/mpv-player/mpv
synced 2025-03-29 15:00:27 +00:00
demux_ts: change overlapping memcpy to memmove
Replace memcpy with memmove since at least src==dst is possible. Fixes another issue that is part of bug #1280. git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@32697 b3059339-0415-0410-9bf9-f77b7e298cf2
This commit is contained in:
parent
ccd5c8566f
commit
7ab2c7bc15
@ -3182,7 +3182,7 @@ static int ts_parse(demuxer_t *demuxer , ES_stream_t *es, unsigned char *packet,
|
||||
}
|
||||
else
|
||||
{
|
||||
memcpy(es->start, p, sz);
|
||||
memmove(es->start, p, sz);
|
||||
|
||||
if(es->size)
|
||||
return es->size;
|
||||
|
Loading…
Reference in New Issue
Block a user