summaryrefslogtreecommitdiff
path: root/rotord/libavwrapper_guarded.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'rotord/libavwrapper_guarded.cpp')
-rwxr-xr-xrotord/libavwrapper_guarded.cpp12
1 files changed, 10 insertions, 2 deletions
diff --git a/rotord/libavwrapper_guarded.cpp b/rotord/libavwrapper_guarded.cpp
index 829a07f..83a92a7 100755
--- a/rotord/libavwrapper_guarded.cpp
+++ b/rotord/libavwrapper_guarded.cpp
@@ -1452,13 +1452,21 @@ void libav::exporter::open_video(AVFormatContext *oc, AVCodec *codec, AVStream *
void libav::exporter::close_video(AVFormatContext *oc, AVStream *st)
{
mutex.lock();
- avcodec_close(st->codec);
- av_free(src_picture.data[0]);
+ //avcodec_close(st->codec); //change 0706 to trace 2nd render issue
+ avcodec_close(audio_st->codec);
+ avcodec_close(video_st->codec);
+ //
+ //
+
+
+ //av_free(src_picture.data[0]); //removed to explore weird 2nd render crash.. seems to WORK -- seems that the picture data is owned elsewhere
av_free(dst_picture.data[0]);
av_free(frame); //removed to explore crash 2nd time render
//gives *** Error in `./rotord': corrupted double-linked list: 0x00007fd8b005bd60 ***
//where is frame initialised???
//moved to destructor
+
+
av_free(outPixels); //SIGSEV here???
mutex.unlock();
}