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
9f1b99e7
Commit
9f1b99e7
authored
Apr 19, 2018
by
Michael Niedermayer
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
avcodec/sbc: Fix non static function prefix
Signed-off-by:
Michael Niedermayer
<
michael@niedermayer.cc
>
parent
f8b17fe3
Hide whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
4 additions
and
4 deletions
+4
-4
sbc.c
libavcodec/sbc.c
+1
-1
sbc.h
libavcodec/sbc.h
+1
-1
sbcdec.c
libavcodec/sbcdec.c
+1
-1
sbcenc.c
libavcodec/sbcenc.c
+1
-1
No files found.
libavcodec/sbc.c
View file @
9f1b99e7
...
...
@@ -52,7 +52,7 @@ static const int sbc_offset8[4][8] = {
/*
* Calculates the CRC-8 of the first len bits in data
*/
uint8_t
sbc_crc8
(
const
AVCRC
*
ctx
,
const
uint8_t
*
data
,
size_t
len
)
uint8_t
ff_
sbc_crc8
(
const
AVCRC
*
ctx
,
const
uint8_t
*
data
,
size_t
len
)
{
size_t
byte_length
=
len
>>
3
;
int
bit_length
=
len
&
7
;
...
...
libavcodec/sbc.h
View file @
9f1b99e7
...
...
@@ -112,7 +112,7 @@ struct sbc_frame {
const
AVCRC
*
crc_ctx
;
};
uint8_t
sbc_crc8
(
const
AVCRC
*
crc_ctx
,
const
uint8_t
*
data
,
size_t
len
);
uint8_t
ff_
sbc_crc8
(
const
AVCRC
*
crc_ctx
,
const
uint8_t
*
data
,
size_t
len
);
void
ff_sbc_calculate_bits
(
const
struct
sbc_frame
*
frame
,
int
(
*
bits
)[
8
]);
#endif
/* AVCODEC_SBC_H */
libavcodec/sbcdec.c
View file @
9f1b99e7
...
...
@@ -147,7 +147,7 @@ static int sbc_unpack_frame(const uint8_t *data, struct sbc_frame *frame,
}
}
if
(
data
[
3
]
!=
sbc_crc8
(
frame
->
crc_ctx
,
crc_header
,
crc_pos
))
if
(
data
[
3
]
!=
ff_
sbc_crc8
(
frame
->
crc_ctx
,
crc_header
,
crc_pos
))
return
-
3
;
ff_sbc_calculate_bits
(
frame
,
bits
);
...
...
libavcodec/sbcenc.c
View file @
9f1b99e7
...
...
@@ -156,7 +156,7 @@ static size_t sbc_pack_frame(AVPacket *avpkt, struct sbc_frame *frame,
if
(
crc_pos
%
8
)
crc_header
[
crc_pos
>>
3
]
<<=
8
-
(
crc_pos
%
8
);
avpkt
->
data
[
3
]
=
sbc_crc8
(
frame
->
crc_ctx
,
crc_header
,
crc_pos
);
avpkt
->
data
[
3
]
=
ff_
sbc_crc8
(
frame
->
crc_ctx
,
crc_header
,
crc_pos
);
ff_sbc_calculate_bits
(
frame
,
bits
);
...
...
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