diff options
author | Diego Biurrun <diego@biurrun.de> | 2016-03-24 11:16:53 +0100 |
---|---|---|
committer | Diego Biurrun <diego@biurrun.de> | 2016-03-25 15:23:56 +0100 |
commit | f4d581cda3897f66c1dda7586b93f86a591dbbef (patch) | |
tree | 2b0ffc804d914fe27b7324f7e21487476df13bda /libavcodec/tscc2.c | |
parent | 02cd8bb9cb4381c50f42a9284098cc8a33d397db (diff) | |
download | ffmpeg-f4d581cda3897f66c1dda7586b93f86a591dbbef.tar.gz |
lavc: Deduplicate zigzag_scan table
Diffstat (limited to 'libavcodec/tscc2.c')
-rw-r--r-- | libavcodec/tscc2.c | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/libavcodec/tscc2.c b/libavcodec/tscc2.c index d83ccd9d11..e830bf93d5 100644 --- a/libavcodec/tscc2.c +++ b/libavcodec/tscc2.c @@ -31,6 +31,7 @@ #include "get_bits.h" #include "bytestream.h" #include "internal.h" +#include "mathops.h" #include "tscc2data.h" typedef struct TSCC2Context { @@ -179,7 +180,7 @@ static int tscc2_decode_mb(TSCC2Context *c, int *q, int vlc_set, if (bpos >= 16) return AVERROR_INVALIDDATA; val = sign_extend(ac >> 4, 8); - c->block[tscc2_zigzag[bpos++]] = val; + c->block[ff_zigzag_scan[bpos++]] = val; } tscc2_idct4_put(c->block, q, dst + k * 4, stride); } |