Commit 117a5490 authored by Alex Beregszaszi's avatar Alex Beregszaszi

init_put_bits changed

Originally committed as revision 2369 to svn://svn.ffmpeg.org/ffmpeg/trunk
parent c58222c5
......@@ -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
......
......@@ -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);
......
......@@ -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 */
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment