diff mbox series

[FFmpeg-devel,v2,3/4] av1_parse: Remove unused getbits instance

Message ID 20230124224623.1374077-3-sw@jkqxz.net
State New
Headers show
Series [FFmpeg-devel,v2,1/4] cbs_av1: Add tracing headers for metadata types | expand

Checks

Context Check Description
andriy/make_x86 success Make finished
andriy/make_fate_x86 success Make fate finished

Commit Message

Mark Thompson Jan. 24, 2023, 10:46 p.m. UTC
---
 libavcodec/av1_parse.c | 6 +-----
 libavcodec/av1_parse.h | 3 ---
 2 files changed, 1 insertion(+), 8 deletions(-)
diff mbox series

Patch

diff --git a/libavcodec/av1_parse.c b/libavcodec/av1_parse.c
index 59ea0bc6e7..b1620eb043 100644
--- a/libavcodec/av1_parse.c
+++ b/libavcodec/av1_parse.c
@@ -56,7 +56,7 @@  int ff_av1_extract_obu(AV1OBU *obu, const uint8_t *buf, int length, void *logctx
 int ff_av1_packet_split(AV1Packet *pkt, const uint8_t *buf, int length, void *logctx)
 {
     GetByteContext bc;
-    int ret, consumed;
+    int consumed;
 
     bytestream2_init(&bc, buf, length);
     pkt->nb_obus = 0;
@@ -94,10 +94,6 @@  int ff_av1_packet_split(AV1Packet *pkt, const uint8_t *buf, int length, void *lo
         }
 
         pkt->nb_obus++;
-
-        ret = init_get_bits(&obu->gb, obu->data, obu->size_bits);
-        if (ret < 0)
-            return ret;
     }
 
     return 0;
diff --git a/libavcodec/av1_parse.h b/libavcodec/av1_parse.h
index f4a5d2830e..89783e9d44 100644
--- a/libavcodec/av1_parse.h
+++ b/libavcodec/av1_parse.h
@@ -49,9 +49,6 @@  typedef struct AV1OBU {
     int raw_size;
     const uint8_t *raw_data;
 
-    /** GetBitContext initialized to the start of the payload */
-    GetBitContext gb;
-
     int type;
 
     int temporal_id;