patch-oggenc_oggenc_c 837 B

123456789101112131415161718192021222324252627
  1. $OpenBSD: patch-oggenc_oggenc_c,v 1.1 2015/09/10 21:03:12 naddy Exp $
  2. Fix crash on raw file close.
  3. https://trac.xiph.org/changeset/19117
  4. --- oggenc/oggenc.c.orig Fri Mar 26 08:07:07 2010
  5. +++ oggenc/oggenc.c Thu Sep 10 22:48:38 2015
  6. @@ -97,6 +97,8 @@ int main(int argc, char **argv)
  7. .3,-1,
  8. 0,0,0.f,
  9. 0, 0, 0, 0, 0};
  10. + input_format raw_format = {NULL, 0, raw_open, wav_close, "raw",
  11. + N_("RAW file reader")};
  12. int i;
  13. @@ -239,9 +241,6 @@ int main(int argc, char **argv)
  14. if(opt.rawmode)
  15. {
  16. - input_format raw_format = {NULL, 0, raw_open, wav_close, "raw",
  17. - N_("RAW file reader")};
  18. -
  19. enc_opts.rate=opt.raw_samplerate;
  20. enc_opts.channels=opt.raw_channels;
  21. enc_opts.samplesize=opt.raw_samplesize;