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
f2c68f9c
Commit
f2c68f9c
authored
Dec 03, 2007
by
Diego Biurrun
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
cosmetics: spelling fixes
Originally committed as revision 11155 to
svn://svn.ffmpeg.org/ffmpeg/trunk
parent
44fb8ebb
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
5 additions
and
5 deletions
+5
-5
mlp_parser.c
libavcodec/mlp_parser.c
+5
-5
No files found.
libavcodec/mlp_parser.c
View file @
f2c68f9c
...
...
@@ -66,8 +66,8 @@ static int crc_init = 0;
static
AVCRC
crc_2D
[
1024
];
/** MLP uses checksums that seem to be based on the standard CRC algorithm,
* but not (in implementation terms, the table lookup and XOR are reversed
i
).
* We can implement this behavio
u
r using a standard av_crc on all but the
* but not (in implementation terms, the table lookup and XOR are reversed).
* We can implement this behavior using a standard av_crc on all but the
* last element, then XOR that with the last element.
*/
...
...
@@ -239,8 +239,8 @@ static int mlp_parse(AVCodecParserContext *s,
sync_present
=
(
AV_RB32
(
buf
+
4
)
&
0xfffffffe
)
==
0xf8726fba
;
if
(
!
sync_present
)
{
// First nibble of a frame is a parity check of the first few nibbles
// Only check when this isn't a sync frame - syncs have a checksum
// First nibble of a frame is a parity check of the first few nibbles
.
// Only check when this isn't a sync frame - syncs have a checksum
.
parity_bits
=
0
;
for
(
i
=
0
;
i
<=
mp
->
num_substreams
;
i
++
)
{
...
...
@@ -254,7 +254,7 @@ static int mlp_parse(AVCodecParserContext *s,
}
if
((((
parity_bits
>>
4
)
^
parity_bits
)
&
0xF
)
!=
0xF
)
{
av_log
(
avctx
,
AV_LOG_INFO
,
"mlpparse:
parity check failed
\n
"
);
av_log
(
avctx
,
AV_LOG_INFO
,
"mlpparse:
Parity check failed.
\n
"
);
goto
lost_sync
;
}
}
else
{
...
...
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