diff options
author | Tristan Matthews <tmatth@videolan.org> | 2018-04-09 11:15:07 -0400 |
---|---|---|
committer | Tristan Matthews <tmatth@videolan.org> | 2018-04-09 14:10:44 -0400 |
commit | e74456acc879665f80d3b9092e5afb4e8335d3a1 (patch) | |
tree | de6ae03e1b15e9d83f9e844fec210218441a2208 | |
parent | 4d6177c8a3682728c0f71c03b846369f48af399a (diff) | |
download | libvorbis-git-e74456acc879665f80d3b9092e5afb4e8335d3a1.tar.gz |
vorbisenc: detect if new_template is NULL
Fixes #1975
-rw-r--r-- | lib/vorbisenc.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/vorbisenc.c b/lib/vorbisenc.c index 4a4607cb..4fc7b62f 100644 --- 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); |