Skip to content
GitLab
Menu
Projects
Groups
Snippets
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
Menu
Open sidebar
evpobr
Vorbis
Commits
e74456ac
Commit
e74456ac
authored
Apr 09, 2018
by
Tristan Matthews
Browse files
vorbisenc: detect if new_template is NULL
Fixes #1975
parent
4d6177c8
Changes
1
Show whitespace changes
Inline
Side-by-side
lib/vorbisenc.c
View file @
e74456ac
...
@@ -1210,7 +1210,7 @@ int vorbis_encode_ctl(vorbis_info *vi,int number,void *arg){
...
@@ -1210,7 +1210,7 @@ int vorbis_encode_ctl(vorbis_info *vi,int number,void *arg){
hi
->
req
,
hi
->
req
,
hi
->
managed
,
hi
->
managed
,
&
new_base
);
&
new_base
);
if
(
!
hi
->
setup
)
return
OV_EIMPL
;
if
(
!
new_template
)
return
OV_EIMPL
;
hi
->
setup
=
new_template
;
hi
->
setup
=
new_template
;
hi
->
base_setting
=
new_base
;
hi
->
base_setting
=
new_base
;
vorbis_encode_setup_setting
(
vi
,
vi
->
channels
,
vi
->
rate
);
vorbis_encode_setup_setting
(
vi
,
vi
->
channels
,
vi
->
rate
);
...
...
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