summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--libavformat/gif.c2
-rw-r--r--libavformat/mpeg.c4
-rw-r--r--libavformat/swf.c6
3 files changed, 6 insertions, 6 deletions
diff --git a/libavformat/gif.c b/libavformat/gif.c
index cd7cf9371f..e64bd51b15 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 98103a6b28..b7add0dff9 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 5a93ae509a..f97a02e3d4 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 */