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.
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
20 @@ -97,6 +97,8 @@ int main(int argc, char **argv)
24 + input_format raw_format = {NULL, 0, raw_open, wav_close, "raw",
25 + N_("RAW file reader")};
29 @@ -239,8 +241,6 @@ int main(int argc, char **argv)
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;