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
ab6f4fd4
Commit
ab6f4fd4
authored
Sep 24, 2014
by
Michael Niedermayer
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
libavformat/dv: Make unchanged function arguments const
Signed-off-by:
Michael Niedermayer
<
michaelni@gmx.at
>
parent
af19d2ed
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
5 additions
and
5 deletions
+5
-5
dv.c
libavformat/dv.c
+5
-5
No files found.
libavformat/dv.c
View file @
ab6f4fd4
...
...
@@ -72,7 +72,7 @@ static inline uint16_t dv_audio_12to16(uint16_t sample)
return
result
;
}
static
const
uint8_t
*
dv_extract_pack
(
uint8_t
*
frame
,
enum
dv_pack_type
t
)
static
const
uint8_t
*
dv_extract_pack
(
const
uint8_t
*
frame
,
enum
dv_pack_type
t
)
{
int
offs
;
int
c
;
...
...
@@ -116,7 +116,7 @@ static const int dv_audio_frequency[3] = {
* 3. Audio is always returned as 16bit linear samples: 12bit nonlinear samples
* are converted into 16bit linear ones.
*/
static
int
dv_extract_audio
(
uint8_t
*
frame
,
uint8_t
**
ppcm
,
static
int
dv_extract_audio
(
const
uint8_t
*
frame
,
uint8_t
**
ppcm
,
const
AVDVProfile
*
sys
)
{
int
size
,
chan
,
i
,
j
,
d
,
of
,
smpls
,
freq
,
quant
,
half_ch
;
...
...
@@ -219,7 +219,7 @@ static int dv_extract_audio(uint8_t *frame, uint8_t **ppcm,
return
size
;
}
static
int
dv_extract_audio_info
(
DVDemuxContext
*
c
,
uint8_t
*
frame
)
static
int
dv_extract_audio_info
(
DVDemuxContext
*
c
,
const
uint8_t
*
frame
)
{
const
uint8_t
*
as_pack
;
int
freq
,
stype
,
smpls
,
quant
,
i
,
ach
;
...
...
@@ -279,7 +279,7 @@ static int dv_extract_audio_info(DVDemuxContext *c, uint8_t *frame)
return
(
c
->
sys
->
audio_min_samples
[
freq
]
+
smpls
)
*
4
;
/* 2ch, 2bytes */
}
static
int
dv_extract_video_info
(
DVDemuxContext
*
c
,
uint8_t
*
frame
)
static
int
dv_extract_video_info
(
DVDemuxContext
*
c
,
const
uint8_t
*
frame
)
{
const
uint8_t
*
vsc_pack
;
AVCodecContext
*
avctx
;
...
...
@@ -307,7 +307,7 @@ static int dv_extract_video_info(DVDemuxContext *c, uint8_t *frame)
return
size
;
}
static
int
dv_extract_timecode
(
DVDemuxContext
*
c
,
uint8_t
*
frame
,
char
*
tc
)
static
int
dv_extract_timecode
(
DVDemuxContext
*
c
,
const
uint8_t
*
frame
,
char
*
tc
)
{
const
uint8_t
*
tc_pack
;
...
...
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