Commit 37f080f6 authored by Michael Niedermayer's avatar Michael Niedermayer

Merge remote-tracking branch 'qatar/master'

* qatar/master:
  h261: Move mvmap table to the only place it is used

Conflicts:
	libavcodec/h261data.h
Merged-by: 's avatarMichael Niedermayer <michaelni@gmx.at>
parents 473d1297 52cd84d4
...@@ -223,11 +223,12 @@ static int h261_decode_mb_skipped(H261Context *h, int mba1, int mba2) ...@@ -223,11 +223,12 @@ static int h261_decode_mb_skipped(H261Context *h, int mba1, int mba2)
return 0; 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) static int decode_mv_component(GetBitContext *gb, int v)
{ {
static const int mvmap[17] = {
0, -1, -2, -3, -4, -5, -6, -7, -8, -9, -10, -11, -12, -13, -14, -15, -16
};
int mv_diff = get_vlc2(gb, h261_mv_vlc.table, H261_MV_VLC_BITS, 2); int mv_diff = get_vlc2(gb, h261_mv_vlc.table, H261_MV_VLC_BITS, 2);
/* check if mv_diff is valid */ /* check if mv_diff is valid */
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment