diff options
author | Clément Bœsch <ubitux@gmail.com> | 2015-12-02 18:41:00 -0500 |
---|---|---|
committer | Vittorio Giovara <vittorio.giovara@gmail.com> | 2016-01-11 15:32:56 -0500 |
commit | 7570c9e04f010c9b3bfdeb4338d330f2cdd25278 (patch) | |
tree | 6c54533500d0b3a57c208a1d21654a492ae23669 /libavformat/swf.h | |
parent | 34d45b36164eee044cfe55d22488b2b65e387872 (diff) | |
download | ffmpeg-7570c9e04f010c9b3bfdeb4338d330f2cdd25278.tar.gz |
swfdec: support compressed swf
Signed-off-by: Vittorio Giovara <vittorio.giovara@gmail.com>
Diffstat (limited to 'libavformat/swf.h')
-rw-r--r-- | libavformat/swf.h | 13 |
1 files changed, 13 insertions, 0 deletions
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 <zlib.h> +#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[]; |