mirror of
https://github.com/FFmpeg/FFmpeg.git
synced 2024-11-21 10:55:51 +02:00
svq1enc: remove pointless array element.
Not sure it was meant to be used for something at some point though. Signed-off-by: Reimar Döffinger <Reimar.Doeffinger@gmx.de>
This commit is contained in:
parent
6724254118
commit
fcfc90ed65
@ -360,8 +360,8 @@ static int svq1_encode_plane(SVQ1EncContext *s, int plane,
|
|||||||
|
|
||||||
s->m.mb_y = y;
|
s->m.mb_y = y;
|
||||||
for (x = 0; x < block_width; x++) {
|
for (x = 0; x < block_width; x++) {
|
||||||
uint8_t reorder_buffer[3][6][7 * 32];
|
uint8_t reorder_buffer[2][6][7 * 32];
|
||||||
int count[3][6];
|
int count[2][6];
|
||||||
int offset = y * 16 * stride + x * 16;
|
int offset = y * 16 * stride + x * 16;
|
||||||
uint8_t *decoded = decoded_plane + offset;
|
uint8_t *decoded = decoded_plane + offset;
|
||||||
uint8_t *ref = ref_plane + offset;
|
uint8_t *ref = ref_plane + offset;
|
||||||
@ -443,8 +443,6 @@ static int svq1_encode_plane(SVQ1EncContext *s, int plane,
|
|||||||
if (score[2] < score[best] && mx == 0 && my == 0) {
|
if (score[2] < score[best] && mx == 0 && my == 0) {
|
||||||
best = 2;
|
best = 2;
|
||||||
s->hdsp.put_pixels_tab[0][0](decoded, ref, stride, 16);
|
s->hdsp.put_pixels_tab[0][0](decoded, ref, stride, 16);
|
||||||
for (i = 0; i < 6; i++)
|
|
||||||
count[2][i] = 0;
|
|
||||||
put_bits(&s->pb, vlc[1], vlc[0]);
|
put_bits(&s->pb, vlc[1], vlc[0]);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
@ -468,6 +466,7 @@ static int svq1_encode_plane(SVQ1EncContext *s, int plane,
|
|||||||
|
|
||||||
s->rd_total += score[best];
|
s->rd_total += score[best];
|
||||||
|
|
||||||
|
if (best != 2)
|
||||||
for (i = 5; i >= 0; i--)
|
for (i = 5; i >= 0; i--)
|
||||||
avpriv_copy_bits(&s->pb, reorder_buffer[best][i],
|
avpriv_copy_bits(&s->pb, reorder_buffer[best][i],
|
||||||
count[best][i]);
|
count[best][i]);
|
||||||
|
Loading…
Reference in New Issue
Block a user