Index: ./libs/libmythtv/avformatdecoder.cpp =================================================================== RCS file: /var/lib/mythcvs/mythtv/libs/libmythtv/avformatdecoder.cpp,v retrieving revision 1.83 diff -u -r1.83 avformatdecoder.cpp --- ./libs/libmythtv/avformatdecoder.cpp 26 May 2004 06:18:36 -0000 1.83 +++ ./libs/libmythtv/avformatdecoder.cpp 4 Jun 2004 00:03:19 -0000 @@ -1026,7 +1026,7 @@ AVPacket *pkt = NULL; int len, ret = 0; unsigned char *ptr; - short samples[AVCODEC_MAX_AUDIO_FRAME_SIZE / 2]; + short *samples = new short[AVCODEC_MAX_AUDIO_FRAME_SIZE / 2]; int data_size = 0; long long pts; bool firstloop = false; @@ -1074,6 +1074,7 @@ { ateof = true; m_parent->SetEof(); + delete[] samples; return; } } @@ -1315,6 +1316,7 @@ delete pkt; m_parent->SetFramesPlayed(framesPlayed); + delete[] samples; } bool AvFormatDecoder::DoRewind(long long desiredFrame)