summaryrefslogtreecommitdiff
path: root/libavformat/swf.h
diff options
context:
space:
mode:
authorAndreas Rheinhardt <andreas.rheinhardt@gmail.com>2020-09-20 13:21:28 +0200
committerAndreas Rheinhardt <andreas.rheinhardt@gmail.com>2020-09-20 18:34:48 +0200
commit913aa4204a2a2e0f3588f628441bf8d6edc12db7 (patch)
treea4dc1c28b3b1d1a20cc731d7cf78ea0819d5fbab /libavformat/swf.h
parentbc0e776c9aaf06f437bf21e05a713fd54dc85400 (diff)
avformat/swf: Separate mux and demux contexts
There was almost no overlap between them: The only field used by both was an int named samples_per_frame. Therefore this commit separates them. Reviewed-by: Michael Niedermayer <michael@niedermayer.cc> Signed-off-by: Andreas Rheinhardt <andreas.rheinhardt@gmail.com>
Diffstat (limited to 'libavformat/swf.h')
-rw-r--r--libavformat/swf.h33
1 files changed, 0 insertions, 33 deletions
diff --git a/libavformat/swf.h b/libavformat/swf.h
index d0f0194c3f..b66420c60a 100644
--- a/libavformat/swf.h
+++ b/libavformat/swf.h
@@ -23,15 +23,6 @@
#ifndef AVFORMAT_SWF_H
#define AVFORMAT_SWF_H
-#include "config.h"
-
-#if CONFIG_ZLIB
-#include <zlib.h>
-#endif
-
-#include "libavutil/fifo.h"
-#include "avformat.h"
-#include "avio.h"
#include "internal.h"
/* should have a generic way to indicate probable size */
@@ -113,35 +104,11 @@ enum {
#define FLAG_SETFILL0 0x02
#define FLAG_SETFILL1 0x04
-#define AUDIO_FIFO_SIZE 65536
-
/* character id used */
#define BITMAP_ID 0
#define VIDEO_ID 0
#define SHAPE_ID 1
-typedef struct SWFContext {
- int64_t duration_pos;
- int64_t tag_pos;
- int64_t vframes_pos;
- int samples_per_frame;
- int sound_samples;
- int swf_frame_number;
- int video_frame_number;
- int frame_rate;
- int tag;
- AVFifoBuffer *audio_fifo;
- AVCodecParameters *audio_par, *video_par;
- AVStream *video_st;
-#if CONFIG_ZLIB
-#define ZBUF_SIZE 4096
- AVIOContext *zpb;
- uint8_t *zbuf_in;
- uint8_t *zbuf_out;
- z_stream zstream;
-#endif
-} SWFContext;
-
extern const AVCodecTag ff_swf_codec_tags[];
#endif /* AVFORMAT_SWF_H */