projects
/
platform
/
upstream
/
libvorbis.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
4d6177c
)
vorbisenc: detect if new_template is NULL
author
Tristan Matthews
<tmatth@videolan.org>
Mon, 9 Apr 2018 15:15:07 +0000
(11:15 -0400)
committer
Tristan Matthews
<tmatth@videolan.org>
Mon, 9 Apr 2018 18:10:44 +0000
(14:10 -0400)
Fixes #1975
lib/vorbisenc.c
patch
|
blob
|
history
diff --git
a/lib/vorbisenc.c
b/lib/vorbisenc.c
index
4a4607c
..
4fc7b62
100644
(file)
--- a/
lib/vorbisenc.c
+++ b/
lib/vorbisenc.c
@@
-1210,7
+1210,7
@@
int vorbis_encode_ctl(vorbis_info *vi,int number,void *arg){
hi->req,
hi->managed,
&new_base);
- if(!
hi->setup
)return OV_EIMPL;
+ if(!
new_template
)return OV_EIMPL;
hi->setup=new_template;
hi->base_setting=new_base;
vorbis_encode_setup_setting(vi,vi->channels,vi->rate);