Mercurial > libavcodec.hg
comparison svq3.c @ 7291:239547e8796e libavcodec
10000l, revert
r14254
Log:
The funny memcpyin svq3 generally has src & dst overlapping, so it
should at least be a memmove().
I was tired, they do not overlap.
author | michael |
---|---|
date | Wed, 16 Jul 2008 17:54:57 +0000 |
parents | 3678ec389a27 |
children | 086563096ac5 |
comparison
equal
deleted
inserted
replaced
7290:53bb88ba7a67 | 7291:239547e8796e |
---|---|
702 | 702 |
703 s->gb.size_in_bits = h->next_slice_index - 8*(length - 1); | 703 s->gb.size_in_bits = h->next_slice_index - 8*(length - 1); |
704 skip_bits(&s->gb, 8); | 704 skip_bits(&s->gb, 8); |
705 | 705 |
706 if (length > 0) { | 706 if (length > 0) { |
707 memmove ((uint8_t *) &s->gb.buffer[get_bits_count(&s->gb) >> 3], | 707 memcpy ((uint8_t *) &s->gb.buffer[get_bits_count(&s->gb) >> 3], |
708 &s->gb.buffer[s->gb.size_in_bits >> 3], (length - 1)); | 708 &s->gb.buffer[s->gb.size_in_bits >> 3], (length - 1)); |
709 } | 709 } |
710 } | 710 } |
711 | 711 |
712 if ((i = svq3_get_ue_golomb (&s->gb)) == INVALID_VLC || i >= 3){ | 712 if ((i = svq3_get_ue_golomb (&s->gb)) == INVALID_VLC || i >= 3){ |