summaryrefslogtreecommitdiff
path: root/libavcodec/avs2.h
diff options
context:
space:
mode:
authorZhao Zhili <quinkblack@foxmail.com>2022-06-13 11:36:33 +0800
committerZhao Zhili <zhilizhao@tencent.com>2022-06-24 15:37:23 +0800
commitb7eee211bc4c7897b538fb53d3ba9fad3a0b6832 (patch)
tree39a8826ef493d44b9598358298edf59dd77fc8c7 /libavcodec/avs2.h
parent592a9e57d9aa4540c7bcdbbed315338990164f2f (diff)
avcodec/avs2_parser: split data into frames
Before the patch, the parser split data into units, not frames. Signed-off-by: Zhao Zhili <zhilizhao@tencent.com>
Diffstat (limited to 'libavcodec/avs2.h')
-rw-r--r--libavcodec/avs2.h2
1 files changed, 1 insertions, 1 deletions
diff --git a/libavcodec/avs2.h b/libavcodec/avs2.h
index 7b66f51998..f342ba52a0 100644
--- a/libavcodec/avs2.h
+++ b/libavcodec/avs2.h
@@ -36,6 +36,6 @@ enum {
};
#define AVS2_ISPIC(x) ((x) == AVS2_INTRA_PIC_START_CODE || (x) == AVS2_INTER_PIC_START_CODE)
-#define AVS2_ISUNIT(x) ((x) == AVS2_SEQ_START_CODE || (x) == AVS2_SEQ_END_CODE || (x) == AVS2_USER_DATA_START_CODE || AVS2_ISPIC(x))
+#define AVS2_ISUNIT(x) ((x) == AVS2_SEQ_START_CODE || AVS2_ISPIC(x))
#endif