Browse Source

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
tags/v0.5
Michael Niedermayer 17 years ago
parent
commit
38844c0b42
1 changed files with 1 additions and 1 deletions
  1. +1
    -1
      libavcodec/svq3.c

+ 1
- 1
libavcodec/svq3.c View File

@@ -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));
}
}


Loading…
Cancel
Save