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
1701cbfa
Commit
1701cbfa
authored
Feb 04, 2008
by
Michael Niedermayer
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
const
Originally committed as revision 11846 to
svn://svn.ffmpeg.org/ffmpeg/trunk
parent
8dd8dc57
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
5 additions
and
5 deletions
+5
-5
bitstream.c
libavcodec/bitstream.c
+3
-3
bitstream.h
libavcodec/bitstream.h
+2
-2
No files found.
libavcodec/bitstream.c
View file @
1701cbfa
...
...
@@ -50,7 +50,7 @@ void align_put_bits(PutBitContext *s)
#endif
}
void
ff_put_string
(
PutBitContext
*
pbc
,
char
*
s
,
int
put_zero
)
void
ff_put_string
(
PutBitContext
*
pbc
,
c
onst
c
har
*
s
,
int
put_zero
)
{
while
(
*
s
){
put_bits
(
pbc
,
8
,
*
s
);
...
...
@@ -60,9 +60,9 @@ void ff_put_string(PutBitContext * pbc, char *s, int put_zero)
put_bits
(
pbc
,
8
,
0
);
}
void
ff_copy_bits
(
PutBitContext
*
pb
,
uint8_t
*
src
,
int
length
)
void
ff_copy_bits
(
PutBitContext
*
pb
,
const
uint8_t
*
src
,
int
length
)
{
const
uint16_t
*
srcw
=
(
uint16_t
*
)
src
;
const
uint16_t
*
srcw
=
(
const
uint16_t
*
)
src
;
int
words
=
length
>>
4
;
int
bits
=
length
&
15
;
int
i
;
...
...
libavcodec/bitstream.h
View file @
1701cbfa
...
...
@@ -137,8 +137,8 @@ static inline void flush_put_bits(PutBitContext *s)
}
void
align_put_bits
(
PutBitContext
*
s
);
void
ff_put_string
(
PutBitContext
*
pbc
,
char
*
s
,
int
put_zero
);
void
ff_copy_bits
(
PutBitContext
*
pb
,
uint8_t
*
src
,
int
length
);
void
ff_put_string
(
PutBitContext
*
pbc
,
c
onst
c
har
*
s
,
int
put_zero
);
void
ff_copy_bits
(
PutBitContext
*
pb
,
const
uint8_t
*
src
,
int
length
);
/* bit input */
/* buffer, buffer_end and size_in_bits must be present and used by every reader */
...
...
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