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/mpeg.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/mpeg.c')
-rw-r--r-- | libav/mpeg.c | 4 |
1 files changed, 2 insertions, 2 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; |