Commit dcd7c26e authored by Tristan Matthews's avatar Tristan Matthews

* #20627: video: fix build for older libavutil

parent 163a559a
......@@ -522,7 +522,8 @@ void VideoSendThread::encodeAndSendVideo()
scaledInput_->pict_type = AV_PICTURE_TYPE_I;
atomic_decrement(&forceKeyFrame_);
} else if (scaledInput_->pict_type == AV_PICTURE_TYPE_I) {
scaledInput_->pict_type = AV_PICTURE_TYPE_NONE;
/* FIXME: Should be AV_PICTURE_TYPE_NONE for newer libavutil */
scaledInput_->pict_type = (AVPictureType) 0;
}
#else
if (forceKeyFrame_ > 0) {
......
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