diff options
| author | Tim Redfern <tim@eclectronics.org> | 2013-06-10 11:56:16 +0100 |
|---|---|---|
| committer | Tim Redfern <tim@eclectronics.org> | 2013-06-10 11:56:16 +0100 |
| commit | 29da1abab9aa2714062a95d6b98afbde23bd763f (patch) | |
| tree | a5050809f2abb5aa312d1a5e80c58a23c1f5e5e5 /rotord | |
| parent | 368eb2f91b736bdd710ee8023abce449896d17b4 (diff) | |
fixed 2 thread render issue
Diffstat (limited to 'rotord')
| -rwxr-xr-x | rotord/libavwrapper_guarded.cpp | 2 | ||||
| -rwxr-xr-x | rotord/libavwrapper_guarded.h | 2 |
2 files changed, 3 insertions, 1 deletions
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; |
