Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
F
FFmpeg
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Wiki
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Container Registry
Model registry
Operate
Environments
Monitor
Incidents
Service Desk
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
libremedia
Tethys
FFmpeg
Commits
f2c68f9c
Commit
f2c68f9c
authored
17 years ago
by
Diego Biurrun
Browse files
Options
Downloads
Patches
Plain Diff
cosmetics: spelling fixes
Originally committed as revision 11155 to
svn://svn.ffmpeg.org/ffmpeg/trunk
parent
44fb8ebb
No related branches found
No related tags found
No related merge requests found
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
libavcodec/mlp_parser.c
+5
-5
5 additions, 5 deletions
libavcodec/mlp_parser.c
with
5 additions
and
5 deletions
libavcodec/mlp_parser.c
+
5
−
5
View file @
f2c68f9c
...
@@ -66,8 +66,8 @@ static int crc_init = 0;
...
@@ -66,8 +66,8 @@ static int crc_init = 0;
static
AVCRC
crc_2D
[
1024
];
static
AVCRC
crc_2D
[
1024
];
/** MLP uses checksums that seem to be based on the standard CRC algorithm,
/** 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
).
* but not (in implementation terms, the table lookup and XOR are reversed).
* We can implement this behavio
u
r using a standard av_crc on all but the
* We can implement this behavior using a standard av_crc on all but the
* last element, then XOR that with the last element.
* last element, then XOR that with the last element.
*/
*/
...
@@ -239,8 +239,8 @@ static int mlp_parse(AVCodecParserContext *s,
...
@@ -239,8 +239,8 @@ static int mlp_parse(AVCodecParserContext *s,
sync_present
=
(
AV_RB32
(
buf
+
4
)
&
0xfffffffe
)
==
0xf8726fba
;
sync_present
=
(
AV_RB32
(
buf
+
4
)
&
0xfffffffe
)
==
0xf8726fba
;
if
(
!
sync_present
)
{
if
(
!
sync_present
)
{
// First nibble of a frame is a parity check of the first few nibbles
// 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
// Only check when this isn't a sync frame - syncs have a checksum
.
parity_bits
=
0
;
parity_bits
=
0
;
for
(
i
=
0
;
i
<=
mp
->
num_substreams
;
i
++
)
{
for
(
i
=
0
;
i
<=
mp
->
num_substreams
;
i
++
)
{
...
@@ -254,7 +254,7 @@ static int mlp_parse(AVCodecParserContext *s,
...
@@ -254,7 +254,7 @@ static int mlp_parse(AVCodecParserContext *s,
}
}
if
((((
parity_bits
>>
4
)
^
parity_bits
)
&
0xF
)
!=
0xF
)
{
if
((((
parity_bits
>>
4
)
^
parity_bits
)
&
0xF
)
!=
0xF
)
{
av_log
(
avctx
,
AV_LOG_INFO
,
"mlpparse:
p
arity check failed
\n
"
);
av_log
(
avctx
,
AV_LOG_INFO
,
"mlpparse:
P
arity check failed
.
\n
"
);
goto
lost_sync
;
goto
lost_sync
;
}
}
}
else
{
}
else
{
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment