Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Contribute to GitLab
Sign in / Register
Toggle navigation
F
ffmpeg.wasm-core
Project
Project
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
Linshizhi
ffmpeg.wasm-core
Commits
117a5490
Commit
117a5490
authored
Oct 13, 2003
by
Alex Beregszaszi
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
init_put_bits changed
Originally committed as revision 2369 to
svn://svn.ffmpeg.org/ffmpeg/trunk
parent
c58222c5
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
6 additions
and
6 deletions
+6
-6
gif.c
libavformat/gif.c
+1
-1
mpeg.c
libavformat/mpeg.c
+2
-2
swf.c
libavformat/swf.c
+3
-3
No files found.
libavformat/gif.c
View file @
117a5490
...
...
@@ -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
...
...
libavformat/mpeg.c
View file @
117a5490
...
...
@@ -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
);
...
...
libavformat/swf.c
View file @
117a5490
...
...
@@ -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 */
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment