mirror of
https://gitee.com/openharmony/third_party_ffmpeg
synced 2025-02-17 03:18:39 +00:00
update libavcodec/rpzaenc.c.
ffmpeg问题修改 Signed-off-by: ziyugao <gaoziyu0614@outlook.com>
This commit is contained in:
parent
b9139b53be
commit
fba483800c
@ -731,19 +731,22 @@ post_skip :
|
||||
|
||||
if (err > s->sixteen_color_thresh) { // DO SIXTEEN COLOR BLOCK
|
||||
uint16_t *row_ptr;
|
||||
int y_size, rgb555;
|
||||
int y_size, x_size, rgb555;
|
||||
|
||||
block_offset = get_block_info(&bi, block_counter);
|
||||
|
||||
row_ptr = &src_pixels[block_offset];
|
||||
y_size = FFMIN(4, bi.image_height - bi.row * 4);
|
||||
x_size = FFMIN(4, bi.image_width - bi.col * 4);
|
||||
|
||||
for (int y = 0; y < y_size; y++) {
|
||||
for (int x = 0; x < 4; x++) {
|
||||
for (int x = 0; x < x_size; x++) {
|
||||
rgb555 = row_ptr[x] & ~0x8000;
|
||||
|
||||
put_bits(&s->pb, 16, rgb555);
|
||||
}
|
||||
for (int x = x_size; x < 4; x++)
|
||||
put_bits(&s->pb, 16, 0);
|
||||
row_ptr += bi.rowstride;
|
||||
}
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user