From 29da1abab9aa2714062a95d6b98afbde23bd763f Mon Sep 17 00:00:00 2001 From: Tim Redfern Date: Mon, 10 Jun 2013 11:56:16 +0100 Subject: fixed 2 thread render issue --- rotord/libavwrapper_guarded.cpp | 2 +- rotord/libavwrapper_guarded.h | 2 ++ 2 files changed, 3 insertions(+), 1 deletion(-) (limited to 'rotord') diff --git a/rotord/libavwrapper_guarded.cpp b/rotord/libavwrapper_guarded.cpp index 83a92a7..be61ae9 100755 --- a/rotord/libavwrapper_guarded.cpp +++ b/rotord/libavwrapper_guarded.cpp @@ -1353,7 +1353,7 @@ void libav::exporter::open_video(AVFormatContext *oc, AVCodec *codec, AVStream * void libav::exporter::write_video_frame(AVFormatContext *oc, AVStream *st, uint8_t *pixels) { int ret; - static struct SwsContext *sws_ctx; + AVCodecContext *c = st->codec; /* diff --git a/rotord/libavwrapper_guarded.h b/rotord/libavwrapper_guarded.h index 646f23c..faa4a2e 100755 --- a/rotord/libavwrapper_guarded.h +++ b/rotord/libavwrapper_guarded.h @@ -213,6 +213,8 @@ namespace libav { AVCodec *audio_codec, *video_codec; double audio_pts, video_pts; + struct SwsContext *sws_ctx; + int audioframesize; float audiostep; int w; -- cgit v1.2.3