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
efce76a8
Commit
efce76a8
authored
Jul 08, 2013
by
Michael Niedermayer
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
ffmpeg_filter: replace exit() by exit_program()
Signed-off-by:
Michael Niedermayer
<
michaelni@gmx.at
>
parent
44d0e520
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
12 additions
and
12 deletions
+12
-12
ffmpeg_filter.c
ffmpeg_filter.c
+12
-12
No files found.
ffmpeg_filter.c
View file @
efce76a8
...
...
@@ -109,7 +109,7 @@ static char *choose_pix_fmts(OutputStream *ost)
int
len
;
if
(
avio_open_dyn_buf
(
&
s
)
<
0
)
exit
(
1
);
exit
_program
(
1
);
p
=
ost
->
enc
->
pix_fmts
;
if
(
ost
->
st
->
codec
->
strict_std_compliance
<=
FF_COMPLIANCE_UNOFFICIAL
)
{
...
...
@@ -147,7 +147,7 @@ static char *choose_ ## var ## s(OutputStream *ost) \
int len; \
\
if (avio_open_dyn_buf(&s) < 0) \
exit(1); \
exit
_program
(1); \
\
for (p = ost->enc->supported_list; *p != none; p++) { \
get_name(*p); \
...
...
@@ -177,12 +177,12 @@ FilterGraph *init_simple_filtergraph(InputStream *ist, OutputStream *ost)
FilterGraph
*
fg
=
av_mallocz
(
sizeof
(
*
fg
));
if
(
!
fg
)
exit
(
1
);
exit
_program
(
1
);
fg
->
index
=
nb_filtergraphs
;
GROW_ARRAY
(
fg
->
outputs
,
fg
->
nb_outputs
);
if
(
!
(
fg
->
outputs
[
0
]
=
av_mallocz
(
sizeof
(
*
fg
->
outputs
[
0
]))))
exit
(
1
);
exit
_program
(
1
);
fg
->
outputs
[
0
]
->
ost
=
ost
;
fg
->
outputs
[
0
]
->
graph
=
fg
;
...
...
@@ -190,7 +190,7 @@ FilterGraph *init_simple_filtergraph(InputStream *ist, OutputStream *ost)
GROW_ARRAY
(
fg
->
inputs
,
fg
->
nb_inputs
);
if
(
!
(
fg
->
inputs
[
0
]
=
av_mallocz
(
sizeof
(
*
fg
->
inputs
[
0
]))))
exit
(
1
);
exit
_program
(
1
);
fg
->
inputs
[
0
]
->
ist
=
ist
;
fg
->
inputs
[
0
]
->
graph
=
fg
;
...
...
@@ -213,7 +213,7 @@ static void init_input_filter(FilterGraph *fg, AVFilterInOut *in)
if
(
type
!=
AVMEDIA_TYPE_VIDEO
&&
type
!=
AVMEDIA_TYPE_AUDIO
)
{
av_log
(
NULL
,
AV_LOG_FATAL
,
"Only video and audio filters supported "
"currently.
\n
"
);
exit
(
1
);
exit
_program
(
1
);
}
if
(
in
->
name
)
{
...
...
@@ -225,7 +225,7 @@ static void init_input_filter(FilterGraph *fg, AVFilterInOut *in)
if
(
file_idx
<
0
||
file_idx
>=
nb_input_files
)
{
av_log
(
NULL
,
AV_LOG_FATAL
,
"Invalid file index %d in filtergraph description %s.
\n
"
,
file_idx
,
fg
->
graph_desc
);
exit
(
1
);
exit
_program
(
1
);
}
s
=
input_files
[
file_idx
]
->
ctx
;
...
...
@@ -243,7 +243,7 @@ static void init_input_filter(FilterGraph *fg, AVFilterInOut *in)
if
(
!
st
)
{
av_log
(
NULL
,
AV_LOG_FATAL
,
"Stream specifier '%s' in filtergraph description %s "
"matches no streams.
\n
"
,
p
,
fg
->
graph_desc
);
exit
(
1
);
exit
_program
(
1
);
}
ist
=
input_streams
[
input_files
[
file_idx
]
->
ist_index
+
st
->
index
];
}
else
{
...
...
@@ -257,7 +257,7 @@ static void init_input_filter(FilterGraph *fg, AVFilterInOut *in)
av_log
(
NULL
,
AV_LOG_FATAL
,
"Cannot find a matching stream for "
"unlabeled input pad %d on filter %s
\n
"
,
in
->
pad_idx
,
in
->
filter_ctx
->
name
);
exit
(
1
);
exit
_program
(
1
);
}
}
av_assert0
(
ist
);
...
...
@@ -268,7 +268,7 @@ static void init_input_filter(FilterGraph *fg, AVFilterInOut *in)
GROW_ARRAY
(
fg
->
inputs
,
fg
->
nb_inputs
);
if
(
!
(
fg
->
inputs
[
fg
->
nb_inputs
-
1
]
=
av_mallocz
(
sizeof
(
*
fg
->
inputs
[
0
]))))
exit
(
1
);
exit
_program
(
1
);
fg
->
inputs
[
fg
->
nb_inputs
-
1
]
->
ist
=
ist
;
fg
->
inputs
[
fg
->
nb_inputs
-
1
]
->
graph
=
fg
;
...
...
@@ -552,7 +552,7 @@ static int configure_output_audio_filter(FilterGraph *fg, OutputFilter *ofilter,
AVIOContext *pb; \
\
if (avio_open_dyn_buf(&pb) < 0) \
exit
(1);
\
exit
_program(1);
\
\
avio_printf(pb, "%s", ctx->filter->name); \
if (nb_pads > 1) \
...
...
@@ -866,7 +866,7 @@ int configure_filtergraph(FilterGraph *fg)
for
(
cur
=
outputs
;
cur
;)
{
GROW_ARRAY
(
fg
->
outputs
,
fg
->
nb_outputs
);
if
(
!
(
fg
->
outputs
[
fg
->
nb_outputs
-
1
]
=
av_mallocz
(
sizeof
(
*
fg
->
outputs
[
0
]))))
exit
(
1
);
exit
_program
(
1
);
fg
->
outputs
[
fg
->
nb_outputs
-
1
]
->
graph
=
fg
;
fg
->
outputs
[
fg
->
nb_outputs
-
1
]
->
out_tmp
=
cur
;
cur
=
cur
->
next
;
...
...
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