diff options
author | Michael Niedermayer <michaelni@gmx.at> | 2002-02-12 15:43:16 +0000 |
---|---|---|
committer | Michael Niedermayer <michaelni@gmx.at> | 2002-02-12 15:43:16 +0000 |
commit | 17592475b3ee4c45ab43ac38e46fe8063b314811 (patch) | |
tree | d23901a813ee1777b9c4451870e111a9940c9fc9 /libav/swf.c | |
parent | 9bd8bd1add6be33f5eb7f2645350901ab2a56a6c (diff) | |
download | ffmpeg-17592475b3ee4c45ab43ac38e46fe8063b314811.tar.gz |
alternative bitstream writer (disabled by default, uncomment #define ALT_BISTREAM_WRITER in common.h if u want to try it)
Originally committed as revision 295 to svn://svn.ffmpeg.org/ffmpeg/trunk
Diffstat (limited to 'libav/swf.c')
-rw-r--r-- | libav/swf.c | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/libav/swf.c b/libav/swf.c index 879d7cdb93..ebd4ada886 100644 --- a/libav/swf.c +++ b/libav/swf.c @@ -127,7 +127,7 @@ static void put_swf_rect(ByteIOContext *pb, put_bits(&p, nbits, ymax & mask); flush_put_bits(&p); - put_buffer(pb, buf, p.buf_ptr - p.buf); + put_buffer(pb, buf, pbBufPtr(&p) - p.buf); } static void put_swf_line_edge(PutBitContext *pb, int dx, int dy) @@ -183,7 +183,7 @@ static void put_swf_matrix(ByteIOContext *pb, put_bits(&p, 20, ty); flush_put_bits(&p); - put_buffer(pb, buf, p.buf_ptr - p.buf); + put_buffer(pb, buf, pbBufPtr(&p) - p.buf); } /* XXX: handle audio only */ @@ -271,7 +271,7 @@ static int swf_write_header(AVFormatContext *s) put_bits(&p, 5, 0); flush_put_bits(&p); - put_buffer(pb, buf1, p.buf_ptr - p.buf); + put_buffer(pb, buf1, pbBufPtr(&p) - p.buf); put_swf_end_tag(s); |