summaryrefslogtreecommitdiff
path: root/libavcodec/h261dec.c
diff options
context:
space:
mode:
authorDiego Biurrun <diego@biurrun.de>2013-04-04 14:34:38 +0200
committerDiego Biurrun <diego@biurrun.de>2013-04-05 12:25:12 +0200
commit52cd84d4d4e335daf26eb8c8b60c2578b3341b91 (patch)
tree5b32c0ef298e42a58c9b4c26fdf3122f9154957c /libavcodec/h261dec.c
parent0404ec619d43f27b87c424aa1a572a6699fe6a31 (diff)
h261: Move mvmap table to the only place it is used
Diffstat (limited to 'libavcodec/h261dec.c')
-rw-r--r--libavcodec/h261dec.c4
1 files changed, 4 insertions, 0 deletions
diff --git a/libavcodec/h261dec.c b/libavcodec/h261dec.c
index 4c31cf52f2..b13d779a65 100644
--- a/libavcodec/h261dec.c
+++ b/libavcodec/h261dec.c
@@ -222,6 +222,10 @@ static int h261_decode_mb_skipped(H261Context *h, int mba1, int mba2)
return 0;
}
+static const int mvmap[17] = {
+ 0, -1, -2, -3, -4, -5, -6, -7, -8, -9, -10, -11, -12, -13, -14, -15, -16
+};
+
static int decode_mv_component(GetBitContext *gb, int v)
{
int mv_diff = get_vlc2(gb, h261_mv_vlc.table, H261_MV_VLC_BITS, 2);