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
3cffbe09
Commit
3cffbe09
authored
Aug 16, 2008
by
Michael Niedermayer
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Fix rc_eq mem leak.
Originally committed as revision 14788 to
svn://svn.ffmpeg.org/ffmpeg/trunk
parent
847d0536
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
2 additions
and
3 deletions
+2
-3
ratecontrol.c
libavcodec/ratecontrol.c
+1
-1
utils.c
libavcodec/utils.c
+0
-1
ffmenc.c
libavformat/ffmenc.c
+1
-1
No files found.
libavcodec/ratecontrol.c
View file @
3cffbe09
...
...
@@ -106,7 +106,7 @@ int ff_rate_control_init(MpegEncContext *s)
};
emms_c
();
rcc
->
rc_eq_eval
=
ff_parse
(
s
->
avctx
->
rc_eq
,
const_names
,
func1
,
func1_names
,
NULL
,
NULL
,
&
error
);
rcc
->
rc_eq_eval
=
ff_parse
(
s
->
avctx
->
rc_eq
?
s
->
avctx
->
rc_eq
:
"tex^qComp"
,
const_names
,
func1
,
func1_names
,
NULL
,
NULL
,
&
error
);
if
(
!
rcc
->
rc_eq_eval
)
{
av_log
(
s
->
avctx
,
AV_LOG_ERROR
,
"Error parsing rc_eq
\"
%s
\"
: %s
\n
"
,
s
->
avctx
->
rc_eq
,
error
?
error
:
""
);
return
-
1
;
...
...
libavcodec/utils.c
View file @
3cffbe09
...
...
@@ -762,7 +762,6 @@ void avcodec_get_context_defaults2(AVCodecContext *s, enum CodecType codec_type)
flags
=
AV_OPT_FLAG_SUBTITLE_PARAM
;
av_opt_set_defaults2
(
s
,
flags
,
flags
);
s
->
rc_eq
=
av_strdup
(
"tex^qComp"
);
s
->
time_base
=
(
AVRational
){
0
,
1
};
s
->
get_buffer
=
avcodec_default_get_buffer
;
s
->
release_buffer
=
avcodec_default_release_buffer
;
...
...
libavformat/ffmenc.c
View file @
3cffbe09
...
...
@@ -132,7 +132,7 @@ static int ffm_write_header(AVFormatContext *s)
put_be16
(
pb
,
(
int
)
(
codec
->
qcompress
*
10000
.
0
));
put_be16
(
pb
,
(
int
)
(
codec
->
qblur
*
10000
.
0
));
put_be32
(
pb
,
codec
->
bit_rate_tolerance
);
put_strz
(
pb
,
codec
->
rc_eq
);
put_strz
(
pb
,
codec
->
rc_eq
?
codec
->
rc_eq
:
"tex^qComp"
);
put_be32
(
pb
,
codec
->
rc_max_rate
);
put_be32
(
pb
,
codec
->
rc_min_rate
);
put_be32
(
pb
,
codec
->
rc_buffer_size
);
...
...
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