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
01d8c72b
Commit
01d8c72b
authored
Jun 07, 2019
by
Michael Niedermayer
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
avformat/vividas: reduce keybits to require half the space
Signed-off-by:
Michael Niedermayer
<
michael@niedermayer.cc
>
parent
8c6c2747
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
6 additions
and
6 deletions
+6
-6
vividas.c
libavformat/vividas.c
+6
-6
No files found.
libavformat/vividas.c
View file @
01d8c72b
...
...
@@ -78,11 +78,11 @@ static int viv_probe(const AVProbeData *p)
return
AVPROBE_SCORE_MAX
;
}
static
const
u
nsigned
shor
t
keybits
[
32
]
=
{
163
,
416
,
893
,
82
,
223
,
572
,
1137
,
430
,
659
,
1104
,
13
,
626
,
695
,
972
,
1465
,
686
,
843
,
1216
,
317
,
1122
,
1383
,
92
,
513
,
1158
,
1243
,
48
,
573
,
1306
,
1495
,
396
,
1009
,
350
,
static
const
u
int8_
t
keybits
[
32
]
=
{
20
,
52
,
111
,
10
,
27
,
71
,
142
,
53
,
82
,
138
,
1
,
78
,
86
,
121
,
183
,
85
,
105
,
152
,
39
,
140
,
172
,
11
,
64
,
144
,
155
,
6
,
71
,
163
,
186
,
49
,
126
,
43
,
};
static
uint32_t
decode_key
(
uint8_t
*
buf
)
...
...
@@ -91,7 +91,7 @@ static uint32_t decode_key(uint8_t *buf)
for
(
int
i
=
0
;
i
<
32
;
i
++
)
{
unsigned
p
=
keybits
[
i
];
key
|=
(
unsigned
)
!!
(
buf
[
p
>>
3
]
&
(
1
<<
(
p
&
7
))
)
<<
i
;
key
|=
(
(
buf
[
p
]
>>
((
i
*
5
+
3
)
&
7
))
&
1u
)
<<
i
;
}
return
key
;
...
...
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