diff options
author | Michael Niedermayer <michaelni@gmx.at> | 2008-07-16 02:10:21 +0000 |
---|---|---|
committer | Michael Niedermayer <michaelni@gmx.at> | 2008-07-16 02:10:21 +0000 |
commit | 38844c0b42c31d1b248ae90c385fea6fd85c026b (patch) | |
tree | 3b36ac6a80712a93cc6be23fa5bf7c8cfa38c03f /libavcodec/svq3.c | |
parent | fb0fbd7c6c444352ae009159c9d31a53ff83198c (diff) | |
download | ffmpeg-38844c0b42c31d1b248ae90c385fea6fd85c026b.tar.gz |
The funny memcpyin svq3 generally has src & dst overlapping, so it
should at least be a memmove().
Originally committed as revision 14254 to svn://svn.ffmpeg.org/ffmpeg/trunk
Diffstat (limited to 'libavcodec/svq3.c')
-rw-r--r-- | libavcodec/svq3.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/libavcodec/svq3.c b/libavcodec/svq3.c index 67fa3172b4..a5868e1cee 100644 --- a/libavcodec/svq3.c +++ b/libavcodec/svq3.c @@ -704,7 +704,7 @@ static int svq3_decode_slice_header (H264Context *h) { 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)); } } |