shithub: opus-tools

Download patch

ref: 10e39c58b6b37eb33644d3c56d728d8ffb19c5e3
parent: e4c9f9150c1a5ff5e026d1935cffdcd153cbecc9
author: Gregory Maxwell <greg@xiph.org>
date: Wed May 23 15:02:59 EDT 2012

Minor fix for chained files with resampling.

--- a/src/opusdec.c
+++ b/src/opusdec.c
@@ -806,11 +806,13 @@
                drain -= tmp;
             } while (drain>0);
             speex_resampler_destroy(resampler);
+            resampler=NULL;
          }
          if(eos)
          {
             has_opus_stream=0;
             if(st)opus_multistream_decoder_destroy(st);
+            st=NULL;
          }
       }
       if (feof(fin))