mirror of
https://github.com/ultravideo/uvg266.git
synced 2024-11-24 02:24:07 +00:00
Fix coverity warning.
- False positive about use of an uninitialized value. Actually just copying uninitialized data from one struct to another.
This commit is contained in:
parent
cf2a406aba
commit
2276e0028f
|
@ -246,9 +246,6 @@ static void encoder_state_worker_encode_lcu(void * opaque) {
|
|||
sao_info_t *sao_top_chroma = lcu->position.y != 0 ? &frame->sao_chroma[(lcu->position.y - 1) * stride + lcu->position.x] : NULL;
|
||||
sao_info_t *sao_left_chroma = lcu->position.x != 0 ? &frame->sao_chroma[lcu->position.y * stride + lcu->position.x - 1] : NULL;
|
||||
|
||||
init_sao_info(sao_luma);
|
||||
init_sao_info(sao_chroma);
|
||||
|
||||
sao_search_luma(state, frame, lcu->position.x, lcu->position.y, sao_luma, sao_top_luma, sao_left_luma, merge_cost_luma);
|
||||
sao_search_chroma(state, frame, lcu->position.x, lcu->position.y, sao_chroma, sao_top_chroma, sao_left_chroma, merge_cost_chroma);
|
||||
|
||||
|
|
|
@ -727,6 +727,9 @@ static void sao_search_best_mode(const encoder_state_t * const state, const pixe
|
|||
{
|
||||
sao_info_t edge_sao;
|
||||
sao_info_t band_sao;
|
||||
|
||||
init_sao_info(&edge_sao);
|
||||
init_sao_info(&band_sao);
|
||||
|
||||
//Avoid "random" uninitialized value
|
||||
edge_sao.band_position[0] = edge_sao.band_position[1] = 0;
|
||||
|
|
Loading…
Reference in a new issue