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
d3a22491
Commit
d3a22491
authored
Aug 15, 2014
by
Michael Niedermayer
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
ffmpeg: remove 32 channel limit from audio_channels_map
Signed-off-by:
Michael Niedermayer
<
michaelni@gmx.at
>
parent
33fefdb4
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
11 additions
and
7 deletions
+11
-7
ffmpeg.c
ffmpeg.c
+3
-0
ffmpeg.h
ffmpeg.h
+1
-2
ffmpeg_opt.c
ffmpeg_opt.c
+7
-5
No files found.
ffmpeg.c
View file @
d3a22491
...
@@ -483,6 +483,9 @@ static void ffmpeg_cleanup(int ret)
...
@@ -483,6 +483,9 @@ static void ffmpeg_cleanup(int ret)
av_freep
(
&
ost
->
avfilter
);
av_freep
(
&
ost
->
avfilter
);
av_freep
(
&
ost
->
logfile_prefix
);
av_freep
(
&
ost
->
logfile_prefix
);
av_freep
(
&
ost
->
audio_channels_map
);
ost
->
audio_channels_mapped
=
0
;
avcodec_free_context
(
&
ost
->
enc_ctx
);
avcodec_free_context
(
&
ost
->
enc_ctx
);
av_freep
(
&
output_streams
[
i
]);
av_freep
(
&
output_streams
[
i
]);
...
...
ffmpeg.h
View file @
d3a22491
...
@@ -402,8 +402,7 @@ typedef struct OutputStream {
...
@@ -402,8 +402,7 @@ typedef struct OutputStream {
double
forced_keyframes_expr_const_values
[
FKF_NB
];
double
forced_keyframes_expr_const_values
[
FKF_NB
];
/* audio only */
/* audio only */
#define FF_CH_MAX 32
int
*
audio_channels_map
;
/* list of the channels id to pick from the source stream */
int
audio_channels_map
[
FF_CH_MAX
];
/* list of the channels id to pick from the source stream */
int
audio_channels_mapped
;
/* number of channels in audio_channels_map */
int
audio_channels_mapped
;
/* number of channels in audio_channels_map */
char
*
logfile_prefix
;
char
*
logfile_prefix
;
...
...
ffmpeg_opt.c
View file @
d3a22491
...
@@ -1478,11 +1478,13 @@ static OutputStream *new_audio_stream(OptionsContext *o, AVFormatContext *oc, in
...
@@ -1478,11 +1478,13 @@ static OutputStream *new_audio_stream(OptionsContext *o, AVFormatContext *oc, in
}
}
if
(
!
ist
||
(
ist
->
file_index
==
map
->
file_idx
&&
ist
->
st
->
index
==
map
->
stream_idx
))
{
if
(
!
ist
||
(
ist
->
file_index
==
map
->
file_idx
&&
ist
->
st
->
index
==
map
->
stream_idx
))
{
if
(
ost
->
audio_channels_mapped
<
FF_ARRAY_ELEMS
(
ost
->
audio_channels_map
))
if
(
av_reallocp_array
(
&
ost
->
audio_channels_map
,
ost
->
audio_channels_map
[
ost
->
audio_channels_mapped
++
]
=
map
->
channel_idx
;
ost
->
audio_channels_mapped
+
1
,
else
sizeof
(
*
ost
->
audio_channels_map
)
av_log
(
NULL
,
AV_LOG_FATAL
,
"Max channel mapping for output %d.%d reached
\n
"
,
)
<
0
)
ost
->
file_index
,
ost
->
st
->
index
);
exit_program
(
1
);
ost
->
audio_channels_map
[
ost
->
audio_channels_mapped
++
]
=
map
->
channel_idx
;
}
}
}
}
}
}
...
...
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