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