Skip to content
Projects
Groups
Snippets
Help
Loading...
Sign in / Register
Toggle navigation
F
ffmpeg
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
Packages
Packages
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
submodule
ffmpeg
Commits
9e10b2cf
Commit
9e10b2cf
authored
Aug 06, 2013
by
Michael Niedermayer
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
avformat/spdifenc make const tables static const
Signed-off-by:
Michael Niedermayer
<
michaelni@gmx.at
>
parent
ef717179
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
3 additions
and
3 deletions
+3
-3
spdifenc.c
libavformat/spdifenc.c
+3
-3
No files found.
libavformat/spdifenc.c
View file @
9e10b2cf
...
...
@@ -395,15 +395,15 @@ static int spdif_header_truehd(AVFormatContext *s, AVPacket *pkt)
{
IEC61937Context
*
ctx
=
s
->
priv_data
;
int
mat_code_length
=
0
;
const
char
mat_end_code
[
16
]
=
{
0xC3
,
0xC2
,
0xC0
,
0xC4
,
0x00
,
0x00
,
0x00
,
0x00
,
0x00
,
0x00
,
0x00
,
0x00
,
0x00
,
0x00
,
0x97
,
0x11
};
static
const
char
mat_end_code
[
16
]
=
{
0xC3
,
0xC2
,
0xC0
,
0xC4
,
0x00
,
0x00
,
0x00
,
0x00
,
0x00
,
0x00
,
0x00
,
0x00
,
0x00
,
0x00
,
0x97
,
0x11
};
if
(
!
ctx
->
hd_buf_count
)
{
const
char
mat_start_code
[
20
]
=
{
0x07
,
0x9E
,
0x00
,
0x03
,
0x84
,
0x01
,
0x01
,
0x01
,
0x80
,
0x00
,
0x56
,
0xA5
,
0x3B
,
0xF4
,
0x81
,
0x83
,
0x49
,
0x80
,
0x77
,
0xE0
};
static
const
char
mat_start_code
[
20
]
=
{
0x07
,
0x9E
,
0x00
,
0x03
,
0x84
,
0x01
,
0x01
,
0x01
,
0x80
,
0x00
,
0x56
,
0xA5
,
0x3B
,
0xF4
,
0x81
,
0x83
,
0x49
,
0x80
,
0x77
,
0xE0
};
mat_code_length
=
sizeof
(
mat_start_code
)
+
BURST_HEADER_SIZE
;
memcpy
(
ctx
->
hd_buf
,
mat_start_code
,
sizeof
(
mat_start_code
));
}
else
if
(
ctx
->
hd_buf_count
==
12
)
{
const
char
mat_middle_code
[
12
]
=
{
0xC3
,
0xC1
,
0x42
,
0x49
,
0x3B
,
0xFA
,
0x82
,
0x83
,
0x49
,
0x80
,
0x77
,
0xE0
};
static
const
char
mat_middle_code
[
12
]
=
{
0xC3
,
0xC1
,
0x42
,
0x49
,
0x3B
,
0xFA
,
0x82
,
0x83
,
0x49
,
0x80
,
0x77
,
0xE0
};
mat_code_length
=
sizeof
(
mat_middle_code
)
+
MAT_MIDDLE_CODE_OFFSET
;
memcpy
(
&
ctx
->
hd_buf
[
12
*
TRUEHD_FRAME_OFFSET
-
BURST_HEADER_SIZE
+
MAT_MIDDLE_CODE_OFFSET
],
mat_middle_code
,
sizeof
(
mat_middle_code
));
...
...
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