From 18a77356a424511e7ae1865d1554d20b4b5c51fb Mon Sep 17 00:00:00 2001 From: Comment Date: Tue, 5 Nov 2013 22:33:22 +0000 Subject: clean up compiler warnings --- rotord/src/libavwrapper.cpp | 14 +++++++------- 1 file changed, 7 insertions(+), 7 deletions(-) (limited to 'rotord/src/libavwrapper.cpp') diff --git a/rotord/src/libavwrapper.cpp b/rotord/src/libavwrapper.cpp index 3276b16..c4d267a 100644 --- a/rotord/src/libavwrapper.cpp +++ b/rotord/src/libavwrapper.cpp @@ -1,7 +1,6 @@ #include "libavwrapper.h" -extern Poco::Mutex mutex; //application wide mutex -static Poco::Mutex mutex; +Poco::Mutex mutex; #include #include @@ -10,6 +9,9 @@ static Poco::Mutex mutex; using namespace std; using namespace Poco; +static bool b_is_one_time_inited=false; +static int sws_flags = SWS_BICUBIC; + void libav::maybeInitFFMpegLib() { if (b_is_one_time_inited) @@ -42,7 +44,7 @@ bool libav::video_decoder::open(const std::string& filename){ Poco::StringTokenizer tokens(filename,"."); string idxfile=""; if (tokens.count()>1){ - for (int i=0;ipts.val * video_st->time_base.num / video_st->time_base.den; write_video_frame(oc, video_st, pixels,keyframe); frame->pts += av_rescale_q(1, video_st->codec->time_base, video_st->time_base); @@ -621,7 +621,7 @@ bool libav::exporter::open_video(AVFormatContext *oc, AVCodec *codec, AVStream * } - void libav::exporter::write_video_frame(AVFormatContext *oc, AVStream *st, uint8_t *pixels, bool keyframe=false) + void libav::exporter::write_video_frame(AVFormatContext *oc, AVStream *st, uint8_t *pixels, bool keyframe) { int ret; -- cgit v1.2.3