qi: Fix 'rootdir' value, include post-install from proper location
[dragora.git] / patches / vorbis-tools / 0009-Fix-oggenc-crash-on-closing-raw-input-files.patch
blobd25bf8dcfa0a00be1a8f437d1342bd312568622e
1 From: =?utf-8?q?Martin_Stegh=C3=B6fer?= <martin@steghoefer.eu>
2 Date: Sat, 29 Nov 2014 10:57:11 +0100
3 Subject: Fix oggenc crash on closing raw input files
5 Origin: backport, https://trac.xiph.org/changeset/19117/trunk/vorbis-tools/oggenc
6 Author: Gregory Maxwell <greg@xiph.org>
7 Bug-Debian: https://bugs.debian.org/771363
9 Fixes a crash of oggenc on closing of any raw input file. The problem was
10 a function call using a function pointer that had become invalid when
11 a variable that was still referenced by a pointer ran out of scope.
12 ---
13 oggenc/oggenc.c | 4 ++--
14 1 file changed, 2 insertions(+), 2 deletions(-)
16 diff --git a/oggenc/oggenc.c b/oggenc/oggenc.c
17 index 6a6d8fe..a9d8aa2 100644
18 --- a/oggenc/oggenc.c
19 +++ b/oggenc/oggenc.c
20 @@ -97,6 +97,8 @@ int main(int argc, char **argv)
21 .3,-1,
22 0,0,0.f,
23 0, 0, 0, 0, 0};
24 + input_format raw_format = {NULL, 0, raw_open, wav_close, "raw",
25 + N_("RAW file reader")};
27 int i;
29 @@ -239,8 +241,6 @@ int main(int argc, char **argv)
31 if(opt.rawmode)
33 - input_format raw_format = {NULL, 0, raw_open, wav_close, "raw",
34 - N_("RAW file reader")};
36 enc_opts.rate=opt.raw_samplerate;
37 enc_opts.channels=opt.raw_channels;