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
09ea482d
Commit
09ea482d
authored
Oct 30, 2012
by
Nick Brereton
Committed by
Michael Niedermayer
Oct 31, 2012
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Fix #1827, segfault with XXCH samples when downsampling.
Signed-off-by:
Michael Niedermayer
<
michaelni@gmx.at
>
parent
be0b37c6
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
1 addition
and
4 deletions
+1
-4
dcadec.c
libavcodec/dcadec.c
+1
-4
No files found.
libavcodec/dcadec.c
View file @
09ea482d
...
...
@@ -448,7 +448,6 @@ typedef struct {
int
xxch_chset_nch
[
4
];
float
xxch_dmix_sf
[
DCA_CHSETS_MAX
];
uint32_t
xxch_downmix
;
/* downmix enabled per channel set */
uint32_t
xxch_dmix_embedded
;
/* lower layer has mix pre-embedded, per chset */
float
xxch_dmix_coeff
[
DCA_PRIM_CHANNELS_MAX
][
32
];
/* worst case sizing */
...
...
@@ -597,7 +596,6 @@ static int dca_parse_audio_coding_header(DCAContext *s, int base_channel,
s
->
xxch_dmix_sf
[
s
->
xxch_chset
]
=
scale_factor
;
for
(
i
=
base_channel
;
i
<
s
->
prim_channels
;
i
++
)
{
s
->
xxch_downmix
|=
(
1
<<
i
);
mask
[
i
]
=
get_bits
(
&
s
->
gb
,
s
->
xxch_nbits_spk_mask
);
}
...
...
@@ -1905,7 +1903,6 @@ static int dca_xxch_decode_frame(DCAContext *s)
core_spk
=
get_bits
(
&
s
->
gb
,
spkmsk_bits
);
s
->
xxch_core_spkmask
=
core_spk
;
s
->
xxch_nbits_spk_mask
=
spkmsk_bits
;
s
->
xxch_downmix
=
0
;
s
->
xxch_dmix_embedded
=
0
;
/* skip to the end of the header */
...
...
@@ -2268,7 +2265,7 @@ static int dca_decode_frame(AVCodecContext *avctx, void *data,
return
AVERROR_INVALIDDATA
;
}
s
->
xxch_d
ownmix
=
0
;
s
->
xxch_d
mix_embedded
=
0
;
}
else
{
/* we only get here if an XXCH channel set can be added to the mix */
channel_mask
=
s
->
xxch_core_spkmask
;
...
...
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