summaryrefslogtreecommitdiff
path: root/libavcodec/mpeg4videodec.c
diff options
context:
space:
mode:
authorAndreas Rheinhardt <andreas.rheinhardt@outlook.com>2022-01-09 11:18:09 +0100
committerAndreas Rheinhardt <andreas.rheinhardt@outlook.com>2022-01-13 08:15:28 +0100
commitc21433c9539a72c17a48b155ca4581b55e326836 (patch)
treebc6d2b2a1b55472e87f64a78064bbc2d2e809caa /libavcodec/mpeg4videodec.c
parent8b9ef5a516dcb6327bdc15943c981ed743a09ab1 (diff)
avcodec/mpeg4video: Split off data in a header of its own
Signed-off-by: Andreas Rheinhardt <andreas.rheinhardt@outlook.com>
Diffstat (limited to 'libavcodec/mpeg4videodec.c')
-rw-r--r--libavcodec/mpeg4videodec.c3
1 files changed, 3 insertions, 0 deletions
diff --git a/libavcodec/mpeg4videodec.c b/libavcodec/mpeg4videodec.c
index 325593a795..37088b7a6b 100644
--- a/libavcodec/mpeg4videodec.c
+++ b/libavcodec/mpeg4videodec.c
@@ -34,6 +34,7 @@
#include "mpegvideo.h"
#include "mpegvideodata.h"
#include "mpeg4video.h"
+#include "mpeg4videodata.h"
#include "h263.h"
#include "profiles.h"
#include "thread.h"
@@ -56,6 +57,8 @@ static VLC studio_intra_tab[12];
static VLC studio_luma_dc;
static VLC studio_chroma_dc;
+static const uint8_t mpeg4_block_count[4] = { 0, 6, 8, 12 };
+
static const int mb_type_b_map[4] = {
MB_TYPE_DIRECT2 | MB_TYPE_L0L1,
MB_TYPE_L0L1 | MB_TYPE_16x16,