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
dd072428
Commit
dd072428
authored
Aug 30, 2011
by
Anton Khirnov
Committed by
Michael Niedermayer
Aug 30, 2011
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
ffmpeg: get rid of the arbitrary MAX_FILES limit.
parent
76e48733
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
7 additions
and
6 deletions
+7
-6
ffmpeg.c
ffmpeg.c
+7
-6
No files found.
ffmpeg.c
View file @
dd072428
...
...
@@ -109,7 +109,6 @@ typedef struct MetadataMap {
static
const
OptionDef
options
[];
#define MAX_FILES 100
#define MAX_STREAMS 1024
/* arbitrary sanity check value */
static
const
char
*
last_asked_format
=
NULL
;
static
AVDictionary
*
ts_scale
;
...
...
@@ -1903,9 +1902,12 @@ static int transcode(OutputFile *output_files,
char
error
[
1024
];
int
key
;
int
want_sdp
=
1
;
uint8_t
no_packet
[
MAX_FILES
]
=
{
0
}
;
uint8_t
*
no_packet
;
int
no_packet_count
=
0
;
if
(
!
(
no_packet
=
av_mallocz
(
nb_input_files
)))
exit_program
(
1
);
if
(
rate_emu
)
for
(
i
=
0
;
i
<
nb_input_streams
;
i
++
)
input_streams
[
i
].
start
=
av_gettime
();
...
...
@@ -2394,7 +2396,7 @@ static int transcode(OutputFile *output_files,
if
(
file_index
<
0
)
{
if
(
no_packet_count
){
no_packet_count
=
0
;
memset
(
no_packet
,
0
,
sizeof
(
no_packet
)
);
memset
(
no_packet
,
0
,
nb_input_files
);
usleep
(
10000
);
continue
;
}
...
...
@@ -2422,7 +2424,7 @@ static int transcode(OutputFile *output_files,
}
no_packet_count
=
0
;
memset
(
no_packet
,
0
,
sizeof
(
no_packet
)
);
memset
(
no_packet
,
0
,
nb_input_files
);
if
(
do_pkt_dump
)
{
av_pkt_dump_log2
(
NULL
,
AV_LOG_DEBUG
,
&
pkt
,
do_hex_dump
,
...
...
@@ -2531,6 +2533,7 @@ static int transcode(OutputFile *output_files,
fail
:
av_freep
(
&
bit_buffer
);
av_freep
(
&
no_packet
);
if
(
output_streams
)
{
for
(
i
=
0
;
i
<
nb_output_streams
;
i
++
)
{
...
...
@@ -3715,8 +3718,6 @@ static int opt_output_file(const char *opt, const char *filename)
av_dict_free
(
&
metadata
);
if
(
nb_output_files
==
MAX_FILES
)
exit_program
(
1
);
/* a temporary hack until all the other MAX_FILES-sized arrays are removed */
output_files
=
grow_array
(
output_files
,
sizeof
(
*
output_files
),
&
nb_output_files
,
nb_output_files
+
1
);
output_files
[
nb_output_files
-
1
].
ctx
=
oc
;
output_files
[
nb_output_files
-
1
].
ost_index
=
nb_output_streams
-
oc
->
nb_streams
;
...
...
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