summaryrefslogtreecommitdiff
path: root/libavfilter/vf_uspp.c
diff options
context:
space:
mode:
authorMichael Niedermayer <michaelni@gmx.at>2014-12-12 04:28:34 +0100
committerMichael Niedermayer <michaelni@gmx.at>2014-12-12 04:28:34 +0100
commite07c82688e8187dbafac489b7c15427252974021 (patch)
treecea70b03bf2ad3856b7d7cb5babd3b498228d1e3 /libavfilter/vf_uspp.c
parent13c3a97bf11834fc4b4d05f6b26371c4c7f47c0d (diff)
avfilter/vf_uspp: fix integer overflow in intermediate
Fixes Ticket3596 Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
Diffstat (limited to 'libavfilter/vf_uspp.c')
-rw-r--r--libavfilter/vf_uspp.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/libavfilter/vf_uspp.c b/libavfilter/vf_uspp.c
index a0e41df006..d0ce63e02f 100644
--- a/libavfilter/vf_uspp.c
+++ b/libavfilter/vf_uspp.c
@@ -45,7 +45,7 @@ typedef struct {
int qscale_type;
int temp_stride[3];
uint8_t *src[3];
- int16_t *temp[3];
+ uint16_t *temp[3];
int outbuf_size;
uint8_t *outbuf;
AVCodecContext *avctx_enc[BLOCK*BLOCK];
@@ -152,7 +152,7 @@ static const uint8_t offset[511][2] = {
{ 3, 4}, {11, 4}, { 3,12}, {11,12}, { 7, 0}, {15, 0}, { 7, 8}, {15, 8},
};
-static void store_slice_c(uint8_t *dst, const int16_t *src,
+static void store_slice_c(uint8_t *dst, const uint16_t *src,
int dst_stride, int src_stride,
int width, int height, int log2_scale)
{