summaryrefslogtreecommitdiff
path: root/jpegxr
diff options
context:
space:
mode:
authorRobin Watts <robin.watts@artifex.com>2016-05-06 16:05:18 +0100
committerRobin Watts <robin.watts@artifex.com>2016-05-06 16:48:45 +0100
commitb5e075d70152429f2216ba5d002bdc9e5dadfc14 (patch)
tree8d738f610efeedb1475069d3547bbef46e738ba4 /jpegxr
parent224a4a9a3315873c59e6d688635615ed1a5be3d5 (diff)
downloadghostpdl-b5e075d70152429f2216ba5d002bdc9e5dadfc14.tar.gz
Coverity 102233: Uninitialised variable use.
Looks like an initialisation was dropped. Copying from similar functions as inspection suggets this is correct.
Diffstat (limited to 'jpegxr')
-rw-r--r--jpegxr/r_strip.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/jpegxr/r_strip.c b/jpegxr/r_strip.c
index 856c41ea8..062baf0c5 100644
--- a/jpegxr/r_strip.c
+++ b/jpegxr/r_strip.c
@@ -2318,7 +2318,7 @@ static void rflush_recover_context(jxr_image_t image)
MACROBLK_UP1(image,ch,tx,mx).hp_quant = image->mb_row_context[ch][off1].hp_quant;
MACROBLK_UP2(image,ch,tx,mx).hp_quant = image->mb_row_context[ch][off2].hp_quant;
MACROBLK_UP3(image,ch,tx,mx).hp_quant = image->mb_row_context[ch][off3].hp_quant;
-
+ count = (ch==0)? 256 : format_scale;
for (idx = 0 ; idx < count; idx += 1)
MACROBLK_CUR(image,ch,tx,mx).data[idx] = image->mb_row_context[ch][off0].data[idx];
for (idx = 0 ; idx < count; idx += 1)