diff options
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 { |
