From 117a5490bd57adcb0be3274222e89fc6c7107f8b Mon Sep 17 00:00:00 2001 From: Alex Beregszaszi Date: Mon, 13 Oct 2003 10:59:57 +0000 Subject: [PATCH] init_put_bits changed Originally committed as revision 2369 to svn://svn.ffmpeg.org/ffmpeg/trunk --- libavformat/gif.c | 2 +- libavformat/mpeg.c | 4 ++-- libavformat/swf.c | 6 +++--- 3 files changed, 6 insertions(+), 6 deletions(-) diff --git a/libavformat/gif.c b/libavformat/gif.c index cd7cf93..e64bd51 100644 --- a/libavformat/gif.c +++ b/libavformat/gif.c @@ -240,7 +240,7 @@ static int gif_image_write_image(ByteIOContext *pb, left= width * height; - init_put_bits(&p, buffer, 130, NULL, NULL); + init_put_bits(&p, buffer, 130); /* * the thing here is the bitstream is written as little packets, with a size byte before diff --git a/libavformat/mpeg.c b/libavformat/mpeg.c index 98103a6..b7add0d 100644 --- a/libavformat/mpeg.c +++ b/libavformat/mpeg.c @@ -71,7 +71,7 @@ static int put_pack_header(AVFormatContext *ctx, MpegMuxContext *s = ctx->priv_data; PutBitContext pb; - init_put_bits(&pb, buf, 128, NULL, NULL); + init_put_bits(&pb, buf, 128); put_bits(&pb, 32, PACK_START_CODE); if (s->is_mpeg2) { @@ -107,7 +107,7 @@ static int put_system_header(AVFormatContext *ctx, uint8_t *buf) int size, rate_bound, i, private_stream_coded, id; PutBitContext pb; - init_put_bits(&pb, buf, 128, NULL, NULL); + init_put_bits(&pb, buf, 128); put_bits(&pb, 32, SYSTEM_HEADER_START_CODE); put_bits(&pb, 16, 0); diff --git a/libavformat/swf.c b/libavformat/swf.c index 5a93ae5..f97a02e 100644 --- a/libavformat/swf.c +++ b/libavformat/swf.c @@ -110,7 +110,7 @@ static void put_swf_rect(ByteIOContext *pb, uint8_t buf[256]; int nbits, mask; - init_put_bits(&p, buf, sizeof(buf), NULL, NULL); + init_put_bits(&p, buf, sizeof(buf)); nbits = 0; max_nbits(&nbits, xmin); @@ -166,7 +166,7 @@ static void put_swf_matrix(ByteIOContext *pb, PutBitContext p; uint8_t buf[256]; - init_put_bits(&p, buf, sizeof(buf), NULL, NULL); + init_put_bits(&p, buf, sizeof(buf)); put_bits(&p, 1, 1); /* a, d present */ put_bits(&p, 5, 20); /* nb bits */ @@ -251,7 +251,7 @@ static int swf_write_header(AVFormatContext *s) put_byte(pb, 0); /* no line style */ /* shape drawing */ - init_put_bits(&p, buf1, sizeof(buf1), NULL, NULL); + init_put_bits(&p, buf1, sizeof(buf1)); put_bits(&p, 4, 1); /* one fill bit */ put_bits(&p, 4, 0); /* zero line bit */ -- 2.7.4