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:
f3e0849
)
proresenc: initialise 'sign' variable
author
Kostya Shishkov
<kostya.shishkov@gmail.com>
Wed, 15 Feb 2012 19:52:11 +0000
(20:52 +0100)
committer
Kostya Shishkov
<kostya.shishkov@gmail.com>
Thu, 16 Feb 2012 05:48:24 +0000
(06:48 +0100)
libavcodec/proresenc.c
patch
|
blob
|
history
diff --git
a/libavcodec/proresenc.c
b/libavcodec/proresenc.c
index
c41982f
..
73f7f7d
100644
(file)
--- a/
libavcodec/proresenc.c
+++ b/
libavcodec/proresenc.c
@@
-265,6
+265,7
@@
static void encode_dcs(PutBitContext *pb, DCTELEM *blocks,
prev_dc = (blocks[0] - 0x4000) / scale;
encode_vlc_codeword(pb, FIRST_DC_CB, MAKE_CODE(prev_dc));
+ sign = 0;
codebook = 3;
blocks += 64;
@@
-409,6
+410,7
@@
static int estimate_dcs(int *error, DCTELEM *blocks, int blocks_per_slice,
prev_dc = (blocks[0] - 0x4000) / scale;
bits = estimate_vlc(FIRST_DC_CB, MAKE_CODE(prev_dc));
+ sign = 0;
codebook = 3;
blocks += 64;
*error += FFABS(blocks[0] - 0x4000) % scale;