Commit e30d12a8 authored by Pierre Lespagnol's avatar Pierre Lespagnol Committed by Adrien Béraud

videoDecode: fix error detection in bad frames

Fix bad frame detection while decoding in order to send key frame request at this time

Change-Id: I0be3d0912c6342cafe4f3b937f9db843b86860fe
parent 8835e993
......@@ -242,7 +242,7 @@ MediaDecoder::setupStream(AVMediaType mediaType)
#endif
JAMI_DBG() << "Decoding " << streamType << " using " << inputDecoder_->long_name << " (" << inputDecoder_->name << ")";
decoderCtx_->err_recognition = (AV_EF_CRCCHECK | AV_EF_BITSTREAM | AV_EF_BUFFER | AV_EF_EXPLODE | AV_EF_CAREFUL | AV_EF_COMPLIANT | AV_EF_AGGRESSIVE);
ret = avcodec_open2(decoderCtx_, inputDecoder_, nullptr);
if (ret < 0) {
JAMI_ERR() << "Could not open codec: " << libav_utils::getError(ret);
......
......@@ -40,7 +40,7 @@ namespace jami { namespace video {
using std::string;
constexpr auto MS_BETWEEN_2_KEYFRAME_REQUEST = std::chrono::milliseconds(500);
constexpr auto MS_BETWEEN_2_KEYFRAME_REQUEST = std::chrono::milliseconds(200);
VideoReceiveThread::VideoReceiveThread(const std::string& id,
const std::string &sdp,
......
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