aboutsummaryrefslogtreecommitdiffstats
path: root/libavcodec/msmpeg4data.h
diff options
context:
space:
mode:
authorAndreas Rheinhardt <andreas.rheinhardt@gmail.com>2021-01-26 22:19:19 +0100
committerAndreas Rheinhardt <andreas.rheinhardt@gmail.com>2021-01-29 06:28:24 +0100
commitd8b2fae3c73d92608abeaa04402fd05266e29bb2 (patch)
tree816e346a00f7a6036b48dc444c2550172d066860 /libavcodec/msmpeg4data.h
parentfbb81ea2c615b1189d21ea00127be205db36b342 (diff)
downloadffmpeg-d8b2fae3c73d92608abeaa04402fd05266e29bb2.tar.gz
avcodec/msmpeg4: Inline number of motion vectors
Both motion vector tables have the same number of elements, hence one can inline said number and remove the field containing the number of elements from the structure. Signed-off-by: Andreas Rheinhardt <andreas.rheinhardt@gmail.com>
Diffstat (limited to 'libavcodec/msmpeg4data.h')
-rw-r--r--libavcodec/msmpeg4data.h2
1 files changed, 1 insertions, 1 deletions
diff --git a/libavcodec/msmpeg4data.h b/libavcodec/msmpeg4data.h
index 02199d0123..68a1d14f55 100644
--- a/libavcodec/msmpeg4data.h
+++ b/libavcodec/msmpeg4data.h
@@ -37,7 +37,6 @@
/* motion vector table */
typedef struct MVTable {
- int n;
const uint16_t *table_mv_code;
const uint8_t *table_mv_bits;
const uint8_t *table_mvx;
@@ -69,6 +68,7 @@ extern const uint8_t ff_wmv1_y_dc_scale_table[32];
extern const uint8_t ff_wmv1_c_dc_scale_table[32];
extern const uint8_t ff_old_ff_y_dc_scale_table[32];
+#define MSMPEG4_MV_TABLES_NB_ELEMS 1099
extern MVTable ff_mv_tables[2];
extern const uint8_t ff_v2_mb_type[8][2];