aboutsummaryrefslogtreecommitdiffstats
path: root/libavcodec/evc_parse.c
diff options
context:
space:
mode:
authorJames Almer <jamrial@gmail.com>2023-06-20 11:15:51 -0300
committerJames Almer <jamrial@gmail.com>2023-06-21 13:31:14 -0300
commit1bcb8a73382a253cee8b2b9e704e5a2fa3369593 (patch)
treed8520b35d5c3c803b5b1768cc50c6ea3f8e08f3c /libavcodec/evc_parse.c
parent7fc6c7633ed13a34b7865bab2ad4b5f7014e74ae (diff)
downloadffmpeg-1bcb8a73382a253cee8b2b9e704e5a2fa3369593.tar.gz
avcodec/evc_parser: use a GetBitContext to parse entire NALUs
Signed-off-by: James Almer <jamrial@gmail.com>
Diffstat (limited to 'libavcodec/evc_parse.c')
-rw-r--r--libavcodec/evc_parse.c22
1 files changed, 0 insertions, 22 deletions
diff --git a/libavcodec/evc_parse.c b/libavcodec/evc_parse.c
index dee48e947b..eff4b7bc38 100644
--- a/libavcodec/evc_parse.c
+++ b/libavcodec/evc_parse.c
@@ -21,28 +21,6 @@
#include "evc.h"
#include "evc_parse.h"
-// nuh_temporal_id specifies a temporal identifier for the NAL unit
-int ff_evc_get_temporal_id(const uint8_t *bits, int bits_size, void *logctx)
-{
- int temporal_id = 0;
- uint16_t t = 0;
-
- if (bits_size < EVC_NALU_HEADER_SIZE) {
- av_log(logctx, AV_LOG_ERROR, "Can't read NAL unit header\n");
- return 0;
- }
-
- // forbidden_zero_bit
- if ((bits[0] & 0x80) != 0)
- return -1;
-
- t = AV_RB16(bits);
-
- temporal_id = (t >> 6) & 0x0007;
-
- return temporal_id;
-}
-
// @see ISO_IEC_23094-1 (7.3.2.6 Slice layer RBSP syntax)
int ff_evc_parse_slice_header(GetBitContext *gb, EVCParserSliceHeader *sh,
const EVCParamSets *ps, enum EVCNALUnitType nalu_type)