aboutsummaryrefslogtreecommitdiffstats
path: root/libavcodec/avs2_parser.c
diff options
context:
space:
mode:
authorZhao Zhili <quinkblack@foxmail.com>2022-06-13 11:36:32 +0800
committerZhao Zhili <zhilizhao@tencent.com>2022-06-24 15:37:23 +0800
commit592a9e57d9aa4540c7bcdbbed315338990164f2f (patch)
treef930446a50622f1b0b7e1118a9fadb0c49913548 /libavcodec/avs2_parser.c
parent2e6e28ebc102a617e9c3ccc9420d2263a20b39cc (diff)
downloadffmpeg-592a9e57d9aa4540c7bcdbbed315338990164f2f.tar.gz
avcodec/avs2: add AVS2 related definitions
Replace magic numbers by enum values. Signed-off-by: Zhao Zhili <zhilizhao@tencent.com>
Diffstat (limited to 'libavcodec/avs2_parser.c')
-rw-r--r--libavcodec/avs2_parser.c6
1 files changed, 1 insertions, 5 deletions
diff --git a/libavcodec/avs2_parser.c b/libavcodec/avs2_parser.c
index b7d5d7774e..3755dbd78c 100644
--- a/libavcodec/avs2_parser.c
+++ b/libavcodec/avs2_parser.c
@@ -19,13 +19,9 @@
* Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA
*/
+#include "avs2.h"
#include "parser.h"
-#define AVS2_SLICE_MAX_START_CODE 0x000001AF
-
-#define AVS2_ISPIC(x) ((x) == 0xB3 || (x) == 0xB6)
-#define AVS2_ISUNIT(x) ((x) == 0xB0 || (x) == 0xB1 || (x) == 0xB2 || AVS2_ISPIC(x))
-
static int avs2_find_frame_end(ParseContext *pc, const uint8_t *buf, int buf_size)
{
int pic_found = pc->frame_start_found;