diff mbox series

[FFmpeg-devel,14/34] avformat/asfenc: Remove unused fields from ASFStream

Message ID AM7PR03MB66607A26D281E28E5F0061DA8FD29@AM7PR03MB6660.eurprd03.prod.outlook.com
State New
Headers show
Series [FFmpeg-devel,01/11] avformat/mux: Sanitize packets without data and side-data
Related show

Checks

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

Commit Message

Andreas Rheinhardt Sept. 6, 2021, 2:27 a.m. UTC
It has never been done in b08569a23948db107e5e6175cd4c695427d5339d,
30b8f3e7dcd0318b91e205dcbf774ef92fb6193c.

After this change, this muxer does no longer use sizeof(AVPacket).

Signed-off-by: Andreas Rheinhardt <andreas.rheinhardt@outlook.com>
---
 libavformat/asfenc.c | 25 -------------------------
 1 file changed, 25 deletions(-)
diff mbox series

Patch

diff --git a/libavformat/asfenc.c b/libavformat/asfenc.c
index b294431aec..1706062f7b 100644
--- a/libavformat/asfenc.c
+++ b/libavformat/asfenc.c
@@ -186,36 +186,11 @@ 
 #define PACKET_SIZE_MAX 65536
 #define PACKET_SIZE_MIN 100
 
-typedef struct ASFPayload {
-    uint8_t type;
-    uint16_t size;
-} ASFPayload;
-
 typedef struct ASFStream {
     int num;
     unsigned char seq;
-    /* use for reading */
-    AVPacket pkt;
-    int frag_offset;
-    int packet_obj_size;
-    int timestamp;
-    int64_t duration;
-    int skip_to_key;
-    int pkt_clean;
-
-    int ds_span;                /* descrambling  */
-    int ds_packet_size;
-    int ds_chunk_size;
-
-    int64_t packet_pos;
 
     uint16_t stream_language_index;
-
-    int      palette_changed;
-    uint32_t palette[256];
-
-    int payload_ext_ct;
-    ASFPayload payload[8];
 } ASFStream;
 
 typedef struct ASFContext {