OSDN Git Service
(root)
/
android-x86
/
external-ffmpeg.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
13c3a97
)
avfilter/vf_uspp: fix integer overflow in intermediate
author
Michael Niedermayer
<michaelni@gmx.at>
Fri, 12 Dec 2014 03:28:34 +0000
(
04:28
+0100)
committer
Michael Niedermayer
<michaelni@gmx.at>
Fri, 12 Dec 2014 03:28:34 +0000
(
04:28
+0100)
Fixes Ticket3596
Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
libavfilter/vf_uspp.c
patch
|
blob
|
history
diff --git
a/libavfilter/vf_uspp.c
b/libavfilter/vf_uspp.c
index
a0e41df
..
d0ce63e
100644
(file)
--- 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];
+
u
int16_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
u
int16_t *src,
int dst_stride, int src_stride,
int width, int height, int log2_scale)
{