Commit e94c5960 authored by Tristan Matthews's avatar Tristan Matthews
Browse files

* #13272: video: fix build if not using ucommon

parent 51281efe
......@@ -326,7 +326,11 @@ void VideoSendThread::run()
// Set presentation timestamp on our scaled frame before encoding it
scaledPicture_->pts = frameNumber++;
#ifdef CCPP_PREFIX
if ((int) forceKeyFrame_ > 0) {
#else
if (*forceKeyFrame_ > 0) {
#endif
#if LIBAVCODEC_VERSION_INT > AV_VERSION_INT(53, 20, 0)
scaledPicture_->pict_type = AV_PICTURE_TYPE_I;
#else
......
......@@ -79,7 +79,11 @@ class VideoSendThread : public ost::Thread {
std::string sdp_;
AVIOInterruptCB interruptCb_;
bool sending_;
#ifdef CCPP_PREFIX
ost::AtomicCounter forceKeyFrame_;
#else
ucommon::atomic::counter forceKeyFrame_;
#endif
public:
explicit VideoSendThread(const std::map<std::string, std::string> &args);
virtual ~VideoSendThread();
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment