diff options
author | Vittorio Giovara <vittorio.giovara@gmail.com> | 2013-11-19 16:45:51 +0100 |
---|---|---|
committer | Vittorio Giovara <vittorio.giovara@gmail.com> | 2013-11-21 12:58:12 +0100 |
commit | 305d3d9f1f7f0bdc18744f376a0ff5b012e4e6cf (patch) | |
tree | 804bc31386b933637a7e9e348b8359973c89e4c1 | |
parent | ea9f7173ae912566e26e9ab7bf89a75b42a72f8d (diff) | |
download | ffmpeg-305d3d9f1f7f0bdc18744f376a0ff5b012e4e6cf.tar.gz |
mpeg4videoenc: restore macro parentheses
These were erroneously removed in 8769113accf1f3b78634dec60b37f7354ed6d88d.
-rw-r--r-- | libavcodec/mpeg4videoenc.c | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/libavcodec/mpeg4videoenc.c b/libavcodec/mpeg4videoenc.c index 2b7d89fe99..7daaf268a6 100644 --- a/libavcodec/mpeg4videoenc.c +++ b/libavcodec/mpeg4videoenc.c @@ -42,9 +42,9 @@ static uint8_t uni_mpeg4_intra_rl_len[64 * 64 * 2 * 2]; static uint32_t uni_mpeg4_inter_rl_bits[64 * 64 * 2 * 2]; static uint8_t uni_mpeg4_inter_rl_len[64 * 64 * 2 * 2]; -//#define UNI_MPEG4_ENC_INDEX(last, run, level) (last * 128 + run * 256 + level) -//#define UNI_MPEG4_ENC_INDEX(last, run, level) (last * 128 * 64 + run + level * 64) -#define UNI_MPEG4_ENC_INDEX(last, run, level) (last * 128 * 64 + run * 128 + (level)) +//#define UNI_MPEG4_ENC_INDEX(last, run, level) ((last) * 128 + (run) * 256 + (level)) +//#define UNI_MPEG4_ENC_INDEX(last, run, level) ((last) * 128 * 64 + (run) + (level) * 64) +#define UNI_MPEG4_ENC_INDEX(last, run, level) ((last) * 128 * 64 + (run) * 128 + (level)) /* mpeg4 * inter |