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
ccd18b47
Commit
ccd18b47
authored
Sep 26, 2019
by
Paul B Mahol
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
swresample/audioconvert: fix invalid left shift for 64bit sample format
Fixes #8002.
parent
80e1c93c
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
4 additions
and
4 deletions
+4
-4
audioconvert.c
libswresample/audioconvert.c
+4
-4
No files found.
libswresample/audioconvert.c
View file @
ccd18b47
...
...
@@ -73,18 +73,18 @@ CONV_FUNC(AV_SAMPLE_FMT_U8 , uint8_t, AV_SAMPLE_FMT_S64, (*(const int64_t*)pi>>5
CONV_FUNC
(
AV_SAMPLE_FMT_S16
,
int16_t
,
AV_SAMPLE_FMT_S64
,
*
(
const
int64_t
*
)
pi
>>
48
)
CONV_FUNC
(
AV_SAMPLE_FMT_S32
,
int32_t
,
AV_SAMPLE_FMT_S64
,
*
(
const
int64_t
*
)
pi
>>
32
)
CONV_FUNC
(
AV_SAMPLE_FMT_S64
,
int64_t
,
AV_SAMPLE_FMT_S64
,
*
(
const
int64_t
*
)
pi
)
CONV_FUNC
(
AV_SAMPLE_FMT_FLT
,
float
,
AV_SAMPLE_FMT_S64
,
*
(
const
int64_t
*
)
pi
*
(
1
.
0
f
/
(
INT64_C
(
1
)
<<
63
)))
CONV_FUNC
(
AV_SAMPLE_FMT_DBL
,
double
,
AV_SAMPLE_FMT_S64
,
*
(
const
int64_t
*
)
pi
*
(
1
.
0
/
(
INT64_C
(
1
)
<<
63
)))
CONV_FUNC
(
AV_SAMPLE_FMT_FLT
,
float
,
AV_SAMPLE_FMT_S64
,
*
(
const
int64_t
*
)
pi
*
(
1
.
0
f
/
(
U
INT64_C
(
1
)
<<
63
)))
CONV_FUNC
(
AV_SAMPLE_FMT_DBL
,
double
,
AV_SAMPLE_FMT_S64
,
*
(
const
int64_t
*
)
pi
*
(
1
.
0
/
(
U
INT64_C
(
1
)
<<
63
)))
CONV_FUNC
(
AV_SAMPLE_FMT_U8
,
uint8_t
,
AV_SAMPLE_FMT_FLT
,
av_clip_uint8
(
lrintf
(
*
(
const
float
*
)
pi
*
(
1
<<
7
))
+
0x80
))
CONV_FUNC
(
AV_SAMPLE_FMT_S16
,
int16_t
,
AV_SAMPLE_FMT_FLT
,
av_clip_int16
(
lrintf
(
*
(
const
float
*
)
pi
*
(
1
<<
15
))))
CONV_FUNC
(
AV_SAMPLE_FMT_S32
,
int32_t
,
AV_SAMPLE_FMT_FLT
,
av_clipl_int32
(
llrintf
(
*
(
const
float
*
)
pi
*
(
1U
<<
31
))))
CONV_FUNC
(
AV_SAMPLE_FMT_S64
,
int64_t
,
AV_SAMPLE_FMT_FLT
,
llrintf
(
*
(
const
float
*
)
pi
*
(
INT64_C
(
1
)
<<
63
)))
CONV_FUNC
(
AV_SAMPLE_FMT_S64
,
int64_t
,
AV_SAMPLE_FMT_FLT
,
llrintf
(
*
(
const
float
*
)
pi
*
(
U
INT64_C
(
1
)
<<
63
)))
CONV_FUNC
(
AV_SAMPLE_FMT_FLT
,
float
,
AV_SAMPLE_FMT_FLT
,
*
(
const
float
*
)
pi
)
CONV_FUNC
(
AV_SAMPLE_FMT_DBL
,
double
,
AV_SAMPLE_FMT_FLT
,
*
(
const
float
*
)
pi
)
CONV_FUNC
(
AV_SAMPLE_FMT_U8
,
uint8_t
,
AV_SAMPLE_FMT_DBL
,
av_clip_uint8
(
lrint
(
*
(
const
double
*
)
pi
*
(
1
<<
7
))
+
0x80
))
CONV_FUNC
(
AV_SAMPLE_FMT_S16
,
int16_t
,
AV_SAMPLE_FMT_DBL
,
av_clip_int16
(
lrint
(
*
(
const
double
*
)
pi
*
(
1
<<
15
))))
CONV_FUNC
(
AV_SAMPLE_FMT_S32
,
int32_t
,
AV_SAMPLE_FMT_DBL
,
av_clipl_int32
(
llrint
(
*
(
const
double
*
)
pi
*
(
1U
<<
31
))))
CONV_FUNC
(
AV_SAMPLE_FMT_S64
,
int64_t
,
AV_SAMPLE_FMT_DBL
,
llrint
(
*
(
const
double
*
)
pi
*
(
INT64_C
(
1
)
<<
63
)))
CONV_FUNC
(
AV_SAMPLE_FMT_S64
,
int64_t
,
AV_SAMPLE_FMT_DBL
,
llrint
(
*
(
const
double
*
)
pi
*
(
U
INT64_C
(
1
)
<<
63
)))
CONV_FUNC
(
AV_SAMPLE_FMT_FLT
,
float
,
AV_SAMPLE_FMT_DBL
,
*
(
const
double
*
)
pi
)
CONV_FUNC
(
AV_SAMPLE_FMT_DBL
,
double
,
AV_SAMPLE_FMT_DBL
,
*
(
const
double
*
)
pi
)
...
...
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