aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorKostya Shishkov <kostya.shishkov@gmail.com>2012-02-15 20:52:11 +0100
committerKostya Shishkov <kostya.shishkov@gmail.com>2012-02-16 06:48:24 +0100
commit17b11ffec7991a9f61a0354830759644ec54f78e (patch)
treedf3d119fca2011facf807b589071dd0227dff6b0
parentf3e084909bff422f0c853507a82f92ff2efc0d28 (diff)
downloadffmpeg-17b11ffec7991a9f61a0354830759644ec54f78e.tar.gz
proresenc: initialise 'sign' variable
-rw-r--r--libavcodec/proresenc.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/libavcodec/proresenc.c b/libavcodec/proresenc.c
index c41982fa89..73f7f7d167 100644
--- 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;