summaryrefslogtreecommitdiff
path: root/libavcodec/mpeg12data.c
diff options
context:
space:
mode:
authorAndreas Rheinhardt <andreas.rheinhardt@outlook.com>2022-10-22 02:12:44 +0200
committerAndreas Rheinhardt <andreas.rheinhardt@outlook.com>2022-10-27 15:44:38 +0200
commita12abf59a9255eef50324245f079a6687c7b4a98 (patch)
tree8982170861a2e5df4751b2e804a19f744420f156 /libavcodec/mpeg12data.c
parent6bb0760a91576d53de960f8377d3ee341f14ec28 (diff)
downloadffmpeg-a12abf59a9255eef50324245f079a6687c7b4a98.tar.gz
avcodec/mpeg12: Use ff_rl_mpeg1.table_(run|level) directly
Signed-off-by: Andreas Rheinhardt <andreas.rheinhardt@outlook.com>
Diffstat (limited to 'libavcodec/mpeg12data.c')
-rw-r--r--libavcodec/mpeg12data.c8
1 files changed, 4 insertions, 4 deletions
diff --git a/libavcodec/mpeg12data.c b/libavcodec/mpeg12data.c
index 5803999153..1e3410bf2f 100644
--- a/libavcodec/mpeg12data.c
+++ b/libavcodec/mpeg12data.c
@@ -130,7 +130,7 @@ const uint16_t ff_mpeg2_vlc_table[MPEG12_RL_NB_ELEMS + 2][2] = {
{0x06,4}, /* EOB */
};
-static const int8_t mpeg1_level[111] = {
+const int8_t ff_mpeg12_level[MPEG12_RL_NB_ELEMS] = {
1, 2, 3, 4, 5, 6, 7, 8,
9, 10, 11, 12, 13, 14, 15, 16,
17, 18, 19, 20, 21, 22, 23, 24,
@@ -147,7 +147,7 @@ static const int8_t mpeg1_level[111] = {
1, 1, 1, 1, 1, 1, 1,
};
-static const int8_t mpeg1_run[111] = {
+const int8_t ff_mpeg12_run[MPEG12_RL_NB_ELEMS] = {
0, 0, 0, 0, 0, 0, 0, 0,
0, 0, 0, 0, 0, 0, 0, 0,
0, 0, 0, 0, 0, 0, 0, 0,
@@ -168,8 +168,8 @@ RLTable ff_rl_mpeg1 = {
111,
111,
ff_mpeg1_vlc_table,
- mpeg1_run,
- mpeg1_level,
+ ff_mpeg12_run,
+ ff_mpeg12_level,
};
const uint8_t ff_mpeg12_mbAddrIncrTable[36][2] = {