diff options
author | Clément Bœsch <ubitux@gmail.com> | 2012-04-03 01:33:03 +0200 |
---|---|---|
committer | Clément Bœsch <ubitux@gmail.com> | 2012-04-03 19:12:52 +0200 |
commit | 588eaa106d8dd0ebce9d2e903aa0a1bbe022c988 (patch) | |
tree | 05053c0b72375d33b838eb95c2e717ad9f54c46d /libavformat/swf.h | |
parent | 38477e1981a7729b02d9a2f45142c53dc78625fe (diff) | |
download | ffmpeg-588eaa106d8dd0ebce9d2e903aa0a1bbe022c988.tar.gz |
swfdec: support compressed swf.
Diffstat (limited to 'libavformat/swf.h')
-rw-r--r-- | libavformat/swf.h | 11 |
1 files changed, 11 insertions, 0 deletions
diff --git a/libavformat/swf.h b/libavformat/swf.h index affebe9c73..8a99c9624d 100644 --- a/libavformat/swf.h +++ b/libavformat/swf.h @@ -23,6 +23,10 @@ #ifndef AVFORMAT_SWF_H #define AVFORMAT_SWF_H +#if CONFIG_ZLIB +#include <zlib.h> +#endif + #include "libavutil/fifo.h" #include "avformat.h" #include "avio.h" @@ -76,6 +80,13 @@ typedef struct { int tag; AVFifoBuffer *audio_fifo; AVCodecContext *audio_enc, *video_enc; +#if CONFIG_ZLIB + AVIOContext *zpb; +#define ZBUF_SIZE 4096 + uint8_t *zbuf_in; + uint8_t *zbuf_out; + z_stream zstream; +#endif } SWFContext; static const AVCodecTag swf_codec_tags[] = { |