Skip to content

Commit 7180adf

Browse files
committed
Merge pull request #1684 from HaiboZhu/Change_v1_3_default_EC_mode
Change default EC mode
2 parents 14294b6 + 8c3db53 commit 7180adf

File tree

3 files changed

+3
-3
lines changed

3 files changed

+3
-3
lines changed

codec/console/dec/src/h264dec.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -200,7 +200,7 @@ void H264DecodeInstance (ISVCDecoder* pDecoder, const char* kpH264FileName, cons
200200
pDecoder->GetOption (DECODER_OPTION_VCL_NAL, &iFeedbackVclNalInAu);
201201
int32_t iFeedbackTidInAu;
202202
pDecoder->GetOption (DECODER_OPTION_TEMPORAL_ID, &iFeedbackTidInAu);
203-
int32_t iErrorConMethod = (int32_t) ERROR_CON_SLICE_COPY_CROSS_IDR_FREEZE_RES_CHANGE;
203+
int32_t iErrorConMethod = (int32_t) ERROR_CON_SLICE_MV_COPY_CROSS_IDR_FREEZE_RES_CHANGE;
204204
pDecoder->SetOption (DECODER_OPTION_ERROR_CON_IDC, &iErrorConMethod);
205205
//~end for
206206

codec/decoder/core/src/decoder.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -306,7 +306,7 @@ void WelsDecoderDefaults (PWelsDecoderContext pCtx, SLogContext* pLogCtx) {
306306
pCtx->pPicBuff[LIST_1] = NULL;
307307

308308
pCtx->bAvcBasedFlag = true;
309-
pCtx->eErrorConMethod = ERROR_CON_SLICE_COPY_CROSS_IDR_FREEZE_RES_CHANGE;
309+
pCtx->eErrorConMethod = ERROR_CON_SLICE_MV_COPY_CROSS_IDR_FREEZE_RES_CHANGE;
310310
pCtx->pPreviousDecodedPictureInDpb = NULL;
311311
pCtx->sDecoderStatistics.iAvgLumaQp = -1;
312312

module/gmp-openh264.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -589,7 +589,7 @@ class OpenH264VideoDecoder : public GMPVideoDecoder {
589589
memset (&param, 0, sizeof (param));
590590
param.eOutputColorFormat = videoFormatI420;
591591
param.uiTargetDqLayer = UCHAR_MAX; // Default value
592-
param.eEcActiveIdc = ERROR_CON_SLICE_COPY; // Error concealment on.
592+
param.eEcActiveIdc = ERROR_CON_SLICE_MV_COPY_CROSS_IDR_FREEZE_RES_CHANGE; // Error concealment on.
593593
param.sVideoProperty.eVideoBsType = VIDEO_BITSTREAM_DEFAULT;
594594

595595
if (decoder_->Initialize (&param)) {

0 commit comments

Comments
 (0)