diff options
| author | Tim Redfern <tim@herge.(none)> | 2013-05-16 17:10:08 +0100 |
|---|---|---|
| committer | Tim Redfern <tim@herge.(none)> | 2013-05-16 17:10:08 +0100 |
| commit | fad2c7236e70faf0669dde3e6cbd51986fdbc6ee (patch) | |
| tree | 3e639c8ccb12ab8289326eaa657abd96fa108f21 /rotord/libavexporter.h | |
| parent | 8d88180d523d82e5c6535ea03ef22791d0cbd9d0 (diff) | |
major leakage
Diffstat (limited to 'rotord/libavexporter.h')
| -rw-r--r-- | rotord/libavexporter.h | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/rotord/libavexporter.h b/rotord/libavexporter.h index d9d6f38..c5e66e3 100644 --- a/rotord/libavexporter.h +++ b/rotord/libavexporter.h @@ -224,7 +224,7 @@ namespace libav { //?? why is ffmpeg reporting fltp as the sample format??? doesn't seem to have an effect to change this though ret = avcodec_encode_audio2(c, &pkt, frame, &got_packet); if (!samples) { - free(sampleptr); + delete[] sampleptr; } if (ret < 0) { //fprintf(stderr, "Error encoding audio frame: %s\n", av_err2str(ret)); @@ -464,6 +464,8 @@ namespace libav { exit(1); } frame_count++; + + //avcodec_free_frame(&frame); } static void close_video(AVFormatContext *oc, AVStream *st) @@ -472,7 +474,7 @@ namespace libav { av_free(src_picture.data[0]); av_free(dst_picture.data[0]); av_free(frame); - //av_free(outPixels); SIGSEV here + av_free(outPixels); //SIGSEV here??? } class Exporter { |
