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
e3df56f5
Commit
e3df56f5
authored
May 04, 2016
by
James Almer
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
avformat/dtsdec: reduce the scope of crctab
Signed-off-by:
James Almer
<
jamrial@gmail.com
>
parent
bb7c5580
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
1 addition
and
2 deletions
+1
-2
dtsdec.c
libavformat/dtsdec.c
+1
-2
No files found.
libavformat/dtsdec.c
View file @
e3df56f5
...
...
@@ -38,7 +38,6 @@ static int dts_probe(AVProbeData *p)
int
sum
,
max
,
pos
,
i
;
int64_t
diff
=
0
;
uint8_t
hdr
[
12
+
AV_INPUT_BUFFER_PADDING_SIZE
]
=
{
0
};
const
AVCRC
*
crctab
=
av_crc_get_table
(
AV_CRC_16_CCITT
);
for
(
pos
=
FFMIN
(
4096
,
p
->
buf_size
);
pos
<
p
->
buf_size
-
2
;
pos
+=
2
)
{
int
marker
,
sample_blocks
,
sample_rate
,
sr_code
,
framesize
;
...
...
@@ -68,7 +67,7 @@ static int dts_probe(AVProbeData *p)
continue
;
if
(
pos
-
2
+
hdr_size
>
p
->
buf_size
)
continue
;
if
(
av_crc
(
crctab
,
0xffff
,
buf
+
3
,
hdr_size
-
5
))
if
(
av_crc
(
av_crc_get_table
(
AV_CRC_16_CCITT
)
,
0xffff
,
buf
+
3
,
hdr_size
-
5
))
continue
;
if
(
pos
==
exss_nextpos
)
...
...
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