changeset 7288:3678ec389a27 libavcodec

The funny memcpyin svq3 generally has src & dst overlapping, so it should at least be a memmove().
author michael
date Wed, 16 Jul 2008 02:10:21 +0000
parents 697213189d07
children 1595c063d68d
files svq3.c
diffstat 1 files changed, 1 insertions(+), 1 deletions(-) [+]
line wrap: on
line diff
--- a/svq3.c	Wed Jul 16 01:57:28 2008 +0000
+++ b/svq3.c	Wed Jul 16 02:10:21 2008 +0000
@@ -704,7 +704,7 @@
     skip_bits(&s->gb, 8);
 
     if (length > 0) {
-      memcpy ((uint8_t *) &s->gb.buffer[get_bits_count(&s->gb) >> 3],
+      memmove ((uint8_t *) &s->gb.buffer[get_bits_count(&s->gb) >> 3],
              &s->gb.buffer[s->gb.size_in_bits >> 3], (length - 1));
     }
   }