Sisyphus repository
Last update: 1 october 2023 | SRPMs: 18631 | Visits: 37047175
en ru br
ALT Linux repos
S:1.3.7-alt1
5.0: 1.2.0-alt3
4.1: 1.2.0-alt3.M41.1
4.0: 1.2.0-alt3
+updates:1.1.2-alt3
3.0: 1.1.1-alt2

Group :: System/Libraries
RPM: libvorbis

 Main   Changelog   Spec   Patches   Sources   Download   Gear   Bugs and FR  Repocop 

Patch: 0001-vorbisenc-detect-if-new_template-is-NULL.patch
Download


From e74456acc879665f80d3b9092e5afb4e8335d3a1 Mon Sep 17 00:00:00 2001
From: Tristan Matthews <tmatth@videolan.org>
Date: Mon, 9 Apr 2018 11:15:07 -0400
Subject: [PATCH] vorbisenc: detect if new_template is NULL
Fixes #1975
---
 lib/vorbisenc.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
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);
 
design & coding: Vladimir Lettiev aka crux © 2004-2005, Andrew Avramenko aka liks © 2007-2008
current maintainer: Michael Shigorin