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
19615089
Commit
19615089
authored
May 07, 2011
by
Anton Khirnov
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
ffmpeg.c: reset avoptions after each input/output file.
This is consistent with how all the other options work.
parent
1435f2fa
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
5 additions
and
0 deletions
+5
-0
cmdutils.c
cmdutils.c
+1
-0
ffmpeg.c
ffmpeg.c
+4
-0
No files found.
cmdutils.c
View file @
19615089
...
@@ -88,6 +88,7 @@ void uninit_opts(void)
...
@@ -88,6 +88,7 @@ void uninit_opts(void)
}
}
av_freep
(
&
opt_names
);
av_freep
(
&
opt_names
);
av_freep
(
&
opt_values
);
av_freep
(
&
opt_values
);
opt_name_count
=
0
;
}
}
void
log_callback_help
(
void
*
ptr
,
int
level
,
const
char
*
fmt
,
va_list
vl
)
void
log_callback_help
(
void
*
ptr
,
int
level
,
const
char
*
fmt
,
va_list
vl
)
...
...
ffmpeg.c
View file @
19615089
...
@@ -3305,6 +3305,8 @@ static void opt_input_file(const char *filename)
...
@@ -3305,6 +3305,8 @@ static void opt_input_file(const char *filename)
av_freep
(
&
video_codec_name
);
av_freep
(
&
video_codec_name
);
av_freep
(
&
audio_codec_name
);
av_freep
(
&
audio_codec_name
);
av_freep
(
&
subtitle_codec_name
);
av_freep
(
&
subtitle_codec_name
);
uninit_opts
();
init_opts
();
}
}
static
void
check_inputs
(
int
*
has_video_ptr
,
static
void
check_inputs
(
int
*
has_video_ptr
,
...
@@ -3850,6 +3852,8 @@ static void opt_output_file(const char *filename)
...
@@ -3850,6 +3852,8 @@ static void opt_output_file(const char *filename)
set_context_opts
(
oc
,
avformat_opts
,
AV_OPT_FLAG_ENCODING_PARAM
,
NULL
);
set_context_opts
(
oc
,
avformat_opts
,
AV_OPT_FLAG_ENCODING_PARAM
,
NULL
);
av_freep
(
&
forced_key_frames
);
av_freep
(
&
forced_key_frames
);
uninit_opts
();
init_opts
();
}
}
/* same option as mencoder */
/* same option as mencoder */
...
...
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