Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
F
ffmpeg
Project
Project
Details
Activity
Releases
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
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
Stefan Westerfeld
ffmpeg
Commits
89f9a906
Commit
89f9a906
authored
May 29, 2019
by
Anton Khirnov
Committed by
James Almer
Mar 15, 2022
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
dst: convert to new channel layout API
Signed-off-by:
James Almer
<
jamrial@gmail.com
>
parent
fbd6e2ba
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
4 additions
and
4 deletions
+4
-4
dstdec.c
libavcodec/dstdec.c
+4
-4
No files found.
libavcodec/dstdec.c
View file @
89f9a906
...
...
@@ -80,8 +80,8 @@ static av_cold int decode_init(AVCodecContext *avctx)
DSTContext
*
s
=
avctx
->
priv_data
;
int
i
;
if
(
avctx
->
channels
>
DST_MAX_CHANNELS
)
{
avpriv_request_sample
(
avctx
,
"Channel count %d"
,
avctx
->
channels
);
if
(
avctx
->
ch
_layout
.
nb_ch
annels
>
DST_MAX_CHANNELS
)
{
avpriv_request_sample
(
avctx
,
"Channel count %d"
,
avctx
->
ch
_layout
.
nb_ch
annels
);
return
AVERROR_PATCHWELCOME
;
}
...
...
@@ -97,7 +97,7 @@ static av_cold int decode_init(AVCodecContext *avctx)
avctx
->
sample_fmt
=
AV_SAMPLE_FMT_FLT
;
for
(
i
=
0
;
i
<
avctx
->
channels
;
i
++
)
for
(
i
=
0
;
i
<
avctx
->
ch
_layout
.
nb_ch
annels
;
i
++
)
memset
(
s
->
dsdctx
[
i
].
buf
,
0x69
,
sizeof
(
s
->
dsdctx
[
i
].
buf
));
ff_init_dsd_data
();
...
...
@@ -243,7 +243,7 @@ static int decode_frame(AVCodecContext *avctx, void *data,
unsigned
map_ch_to_pelem
[
DST_MAX_CHANNELS
];
unsigned
i
,
ch
,
same_map
,
dst_x_bit
;
unsigned
half_prob
[
DST_MAX_CHANNELS
];
const
int
channels
=
avctx
->
channels
;
const
int
channels
=
avctx
->
ch
_layout
.
nb_ch
annels
;
DSTContext
*
s
=
avctx
->
priv_data
;
GetBitContext
*
gb
=
&
s
->
gb
;
ArithCoder
*
ac
=
&
s
->
ac
;
...
...
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