File: 0005-vorbisenc-detect-if-new-template-is-null.patch

package info (click to toggle)
libvorbis 1.3.6-2
  • links: PTS, VCS
  • area: main
  • in suites: buster
  • size: 7,564 kB
  • sloc: ansic: 54,722; sh: 4,218; xml: 982; perl: 786; makefile: 327
file content (21 lines) | stat: -rw-r--r-- 746 bytes parent folder | download
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
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(-)

--- a/lib/vorbisenc.c
+++ b/lib/vorbisenc.c
@@ -1211,7 +1211,7 @@
                                           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);