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 | |
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')
-rw-r--r-- | libav/mpeg.c | 4 | ||||
-rw-r--r-- | libav/swf.c | 6 |
2 files changed, 5 insertions, 5 deletions
diff --git a/libav/mpeg.c b/libav/mpeg.c index 57dae4c5f5..2c09a85970 100644 --- a/libav/mpeg.c +++ b/libav/mpeg.c @@ -80,7 +80,7 @@ static int put_pack_header(AVFormatContext *ctx, put_bits(&pb, 1, 1); flush_put_bits(&pb); - return pb.buf_ptr - pb.buf; + return pbBufPtr(&pb) - pb.buf; } static int put_system_header(AVFormatContext *ctx, UINT8 *buf) @@ -135,7 +135,7 @@ static int put_system_header(AVFormatContext *ctx, UINT8 *buf) } } flush_put_bits(&pb); - size = pb.buf_ptr - pb.buf; + size = pbBufPtr(&pb) - pb.buf; /* patch packet size */ buf[4] = (size - 6) >> 8; buf[5] = (size - 6) & 0xff; 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); |