From 7570c9e04f010c9b3bfdeb4338d330f2cdd25278 Mon Sep 17 00:00:00 2001 From: Clément Bœsch Date: Wed, 2 Dec 2015 18:41:00 -0500 Subject: swfdec: support compressed swf Signed-off-by: Vittorio Giovara --- libavformat/swf.h | 13 +++++++++++++ 1 file changed, 13 insertions(+) (limited to 'libavformat/swf.h') diff --git a/libavformat/swf.h b/libavformat/swf.h index 8eb3f70541..f18aa7cc58 100644 --- a/libavformat/swf.h +++ b/libavformat/swf.h @@ -23,6 +23,12 @@ #ifndef AVFORMAT_SWF_H #define AVFORMAT_SWF_H +#include "config.h" + +#if CONFIG_ZLIB +#include +#endif + #include "libavutil/fifo.h" #include "avformat.h" #include "avio.h" @@ -77,6 +83,13 @@ typedef struct SWFContext { AVFifoBuffer *audio_fifo; AVCodecContext *audio_enc, *video_enc; 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[]; -- cgit v1.2.3