summaryrefslogtreecommitdiffstats
path: root/mpvcore
diff options
context:
space:
mode:
authorBen Boeckel <mathstuf@gmail.com>2013-10-08 00:35:04 -0400
committerBen Boeckel <mathstuf@gmail.com>2013-10-08 22:00:23 -0400
commit67eb187826b0e25ddef108b06c7e3c4cc31784a7 (patch)
tree012727ed528f875f65a4f123bfef180d7f6506a3 /mpvcore
parent47345219a342eeec822583110553ae41884b7f8f (diff)
downloadmpv-67eb187826b0e25ddef108b06c7e3c4cc31784a7.tar.bz2
mpv-67eb187826b0e25ddef108b06c7e3c4cc31784a7.tar.xz
matroska: use memmove when collapsing the source list down
Diffstat (limited to 'mpvcore')
-rw-r--r--mpvcore/timeline/tl_matroska.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/mpvcore/timeline/tl_matroska.c b/mpvcore/timeline/tl_matroska.c
index 8ff5ae2074..43857f1e59 100644
--- a/mpvcore/timeline/tl_matroska.c
+++ b/mpvcore/timeline/tl_matroska.c
@@ -291,7 +291,7 @@ static int find_ordered_chapter_sources(struct MPContext *mpctx,
struct matroska_segment_uid *source_uid = *uids + i;
struct matroska_segment_uid *target_uid = *uids + j;
(*sources)[j] = (*sources)[i];
- memcpy(target_uid, source_uid, sizeof(*source_uid));
+ memmove(target_uid, source_uid, sizeof(*source_uid));
j++;
}
*num_sources = j;