Task #523 - intel-mediasdk-23.2.2-5.fc41/scan-results.err
back to task #523download
Error: CLANG_WARNING: intel-mediasdk-23.2.2-build/MediaSDK-intel-mediasdk-23.2.2/_studio/enctools/src/mfx_enctools_aenc.cpp:129:10: warning[deadcode.DeadStores]: Although the value stored to 'pS0' is used in the enclosing expression, the value is never actually read from 'pS0' # 127| pitch = surface->Data.Pitch; # 128| # 129|-> pS = pS0 = surface->Data.Y + surface->Info.CropX + surface->Info.CropY * pitch; # 130| # 131| if (wS > m_aencPar.FrameWidth || hS > m_aencPar.FrameHeight) Error: CLANG_WARNING: intel-mediasdk-23.2.2-build/MediaSDK-intel-mediasdk-23.2.2/_studio/mfx_lib/decode/av1/src/mfx_av1_dec_decode.cpp:505:9: warning[deadcode.DeadStores]: Value stored to 'sts' is never read # 503| { # 504| #ifdef MFX_VA # 505|-> sts = MFX_ERR_UNSUPPORTED; # 506| #endif # 507| } Error: CLANG_WARNING: intel-mediasdk-23.2.2-build/MediaSDK-intel-mediasdk-23.2.2/_studio/mfx_lib/decode/av1/src/mfx_av1_dec_decode.cpp:549:9: warning[deadcode.DeadStores]: Value stored to 'sts' is never read # 547| mfxStatus sts = MFX_ERR_NONE; # 548| if (!(par->IOPattern & MFX_IOPATTERN_OUT_SYSTEM_MEMORY)) # 549|-> sts = MFX_VPX_Utility::QueryIOSurfInternal(par, request); # 550| else # 551| { Error: COMPILER_WARNING: intel-mediasdk-23.2.2-build/MediaSDK-intel-mediasdk-23.2.2/_studio/mfx_lib/decode/h264/src/mfx_h264_dec_decode.cpp:91:8: warning[-Wodr]: type ‘struct ThreadTaskInfo’ violates the C++ One Definition Rule # 91 | struct ThreadTaskInfo # | ^ intel-mediasdk-23.2.2-build/MediaSDK-intel-mediasdk-23.2.2/_studio/mfx_lib/decode/h265/src/mfx_h265_dec_decode.cpp:135:8: note: a different type is defined in another translation unit # 135 | struct ThreadTaskInfo # | ^ intel-mediasdk-23.2.2-build/MediaSDK-intel-mediasdk-23.2.2/_studio/mfx_lib/decode/h265/src/mfx_h265_dec_decode.cpp:147:23: note: the first difference of corresponding definitions is field ‘taskID’ # 147 | mfxU32 taskID; // for task ordering # | ^ intel-mediasdk-23.2.2-build/MediaSDK-intel-mediasdk-23.2.2/_studio/mfx_lib/decode/h265/src/mfx_h265_dec_decode.cpp:135:8: note: a type with different number of fields is defined in another translation unit # 135 | struct ThreadTaskInfo # | ^ # 89| } # 90| # 91|-> struct ThreadTaskInfo # 92| { # 93| mfxFrameSurface1* surface_work = nullptr; Error: CLANG_WARNING: intel-mediasdk-23.2.2-build/MediaSDK-intel-mediasdk-23.2.2/_studio/mfx_lib/decode/h264/src/mfx_h264_dec_decode.cpp:1310:13: warning[deadcode.DeadStores]: Value stored to 'umcRes' is never read # 1308| } # 1309| # 1310|-> umcRes = m_pH264VideoDecoder->RunDecoding(); # 1311| # 1312| if (m_vInitPar.mfx.DecodedOrder) Error: CLANG_WARNING: intel-mediasdk-23.2.2-build/MediaSDK-intel-mediasdk-23.2.2/_studio/mfx_lib/decode/h265/src/mfx_h265_dec_decode.cpp:1079:5: warning[deadcode.DeadStores]: Value stored to 'sts' is never read # 1077| MFX_CHECK(sts == MFX_ERR_NONE, MFX_ERR_INVALID_VIDEO_PARAM); # 1078| # 1079|-> sts = CheckFrameData(surface_work); # 1080| # 1081| sts = m_FrameAllocator->SetCurrentMFXSurface(surface_work, m_isOpaq); Error: CLANG_WARNING: intel-mediasdk-23.2.2-build/MediaSDK-intel-mediasdk-23.2.2/_studio/mfx_lib/decode/h265/src/mfx_h265_dec_decode.cpp:1200:13: warning[deadcode.DeadStores]: Value stored to 'umcRes' is never read # 1198| return sts; # 1199| } # 1200|-> umcRes = m_pH265VideoDecoder->RunDecoding(); # 1201| # 1202| if (m_vInitPar.mfx.DecodedOrder) Error: CLANG_WARNING: intel-mediasdk-23.2.2-build/MediaSDK-intel-mediasdk-23.2.2/_studio/mfx_lib/decode/vc1/src/mfx_vc1_decode.cpp:692:5: warning[deadcode.DeadStores]: Value stored to 'MFXSts' is never read # 690| # 691| // Check input surface for data correctness # 692|-> MFXSts = CheckFrameInfo(&surface_work->Info); # 693| # 694| if (!m_IsOpaq) Error: CLANG_WARNING: intel-mediasdk-23.2.2-build/MediaSDK-intel-mediasdk-23.2.2/_studio/mfx_lib/decode/vc1/src/mfx_vc1_decode.cpp:915:21: warning[deadcode.DeadStores]: Value stored to 'ReadDataSize' is never read # 913| m_FrameConstrData.SetDataSize(m_FrameConstrData.GetDataSize() + bs->DataLength); # 914| bs->DataOffset = bs->DataOffset+bs->DataLength; # 915|-> ReadDataSize = bs->DataOffset; # 916| bs->DataLength = 0; # 917| } Error: CLANG_WARNING: intel-mediasdk-23.2.2-build/MediaSDK-intel-mediasdk-23.2.2/_studio/mfx_lib/decode/vp8/src/mfx_vp8_dec_decode_hw.cpp:1175:9: warning[deadcode.DeadStores]: Value stored to 'partitions' is never read # 1173| m_CodedCoeffTokenPartition = bits; # 1174| # 1175|-> partitions = 1 << bits; # 1176| m_frame_info.numTokenPartitions = 1 << bits; # 1177| Error: CLANG_WARNING: intel-mediasdk-23.2.2-build/MediaSDK-intel-mediasdk-23.2.2/_studio/mfx_lib/encode/mjpeg/src/mfx_mjpeg_encode.cpp:233:77: warning[core.NullDereference]: Array access (from variable 'src') results in a null pointer dereference # 231| for(uint32_t j=0; j<width/2; j++) # 232| { # 233|-> dst[0][i*dstPitch[0] + 2*j] = src[i*srcPitch + (j<<2)]; # 234| dst[1][((i/2)*2)*dstPitch[1] + 2*j + (i % 2)] = src[i*srcPitch + (j<<2)+1]; # 235| dst[0][i*dstPitch[0] + 2*j + 1] = src[i*srcPitch + (j<<2)+2]; Error: CLANG_WARNING: intel-mediasdk-23.2.2-build/MediaSDK-intel-mediasdk-23.2.2/_studio/mfx_lib/encode/mjpeg/src/mfx_mjpeg_encode.cpp:262:16: warning[cplusplus.NewDelete]: Use of memory after it is freed # 260| } # 261| # 262|-> if(pDataIn->GetColorFormat() == UMC::NV12 || pDataIn->GetColorFormat() == UMC::YV12) # 263| { # 264| std::unique_ptr<UMC::VideoData> cvt(new UMC::VideoData()); Error: CLANG_WARNING: intel-mediasdk-23.2.2-build/MediaSDK-intel-mediasdk-23.2.2/_studio/mfx_lib/encode/mjpeg/src/mfx_mjpeg_encode.cpp:340:47: warning[core.NullDereference]: Array access (from variable 'src') results in a null pointer dereference # 338| for(uint32_t j=0; j<width; j++) # 339| { # 340|-> dst[i*dstPitch + j] = src[i*srcPitch + (j<<1)]; # 341| } # 342| Error: CLANG_WARNING: intel-mediasdk-23.2.2-build/MediaSDK-intel-mediasdk-23.2.2/_studio/mfx_lib/encode_hw/h264/src/mfx_h264_encode_cm.cpp:34: included_from: Included from here. intel-mediasdk-23.2.2-build/MediaSDK-intel-mediasdk-23.2.2/_studio/mfx_lib/encode_hw/h264/include/mfx_h264_encode_hw_utils.h:1838:17: warning[deadcode.DeadStores]: Value stored to 'sts' is never read # 1836| else # 1837| { # 1838|-> sts = HEVCExtBRC::Create(m_BRCLocal); # 1839| m_pBRC = &m_BRCLocal; # 1840| } Error: CLANG_WARNING: intel-mediasdk-23.2.2-build/MediaSDK-intel-mediasdk-23.2.2/_studio/mfx_lib/encode_hw/h264/src/mfx_h264_encode_cm.cpp:59:10: warning[deadcode.DeadStores]: Although the value stored to 'result' is used in the enclosing expression, the value is never actually read from 'result' # 57| CmProgram * program = 0; # 58| # 59|-> if ((result = ::ReadProgram(device, program, buffer, (mfxU32)len)) != CM_SUCCESS) # 60| throw CmRuntimeError(); # 61| Error: CLANG_WARNING: intel-mediasdk-23.2.2-build/MediaSDK-intel-mediasdk-23.2.2/_studio/mfx_lib/encode_hw/h264/src/mfx_h264_encode_cm.cpp:70:10: warning[deadcode.DeadStores]: Although the value stored to 'result' is used in the enclosing expression, the value is never actually read from 'result' # 68| CmKernel * kernel = 0; # 69| # 70|-> if ((result = ::CreateKernel(device, program, name, funcptr, kernel)) != CM_SUCCESS) # 71| throw CmRuntimeError(); # 72| Error: CLANG_WARNING: intel-mediasdk-23.2.2-build/MediaSDK-intel-mediasdk-23.2.2/_studio/mfx_lib/encode_hw/h264/src/mfx_h264_encode_cm.cpp:107:10: warning[deadcode.DeadStores]: Although the value stored to 'result' is used in the enclosing expression, the value is never actually read from 'result' # 105| { # 106| int result = CM_SUCCESS; # 107|-> if ((result = buffer->ReadSurface(reinterpret_cast<unsigned char *>(buf), e)) != CM_SUCCESS) # 108| throw CmRuntimeError(); # 109| } Error: CLANG_WARNING: intel-mediasdk-23.2.2-build/MediaSDK-intel-mediasdk-23.2.2/_studio/mfx_lib/encode_hw/h264/src/mfx_h264_encode_cm.cpp:114:10: warning[deadcode.DeadStores]: Although the value stored to 'result' is used in the enclosing expression, the value is never actually read from 'result' # 112| { # 113| int result = CM_SUCCESS; # 114|-> if ((result = buffer->WriteSurface(reinterpret_cast<unsigned char *>(buf), e)) != CM_SUCCESS) # 115| throw CmRuntimeError(); # 116| } Error: CLANG_WARNING: intel-mediasdk-23.2.2-build/MediaSDK-intel-mediasdk-23.2.2/_studio/mfx_lib/encode_hw/h264/src/mfx_h264_encode_cm.cpp:149:14: warning[deadcode.DeadStores]: Although the value stored to 'result' is used in the enclosing expression, the value is never actually read from 'result' # 147| return 0; # 148| # 149|-> if ((result = ::CreateCmDevice(device, *version, display, CM_DEVICE_CREATE_OPTION_SCRATCH_SPACE_DISABLE)) != CM_SUCCESS) # 150| return 0; # 151| #endif Error: CLANG_WARNING: intel-mediasdk-23.2.2-build/MediaSDK-intel-mediasdk-23.2.2/_studio/mfx_lib/encode_hw/h264/src/mfx_h264_encode_cm.cpp:410:34: warning[deadcode.DeadStores]: Although the value stored to 'result' is used in the enclosing expression, the value is never actually read from 'result' # 408| int result = CM_SUCCESS; # 409| CmSurface2D * cmSurface = 0; # 410|-> if (device && d3dSurface && (result = device->CreateSurface2D(d3dSurface, cmSurface)) != CM_SUCCESS) # 411| throw CmRuntimeError(); # 412| return cmSurface; Error: CLANG_WARNING: intel-mediasdk-23.2.2-build/MediaSDK-intel-mediasdk-23.2.2/_studio/mfx_lib/encode_hw/h264/src/mfx_h264_encode_cm.cpp:420:34: warning[deadcode.DeadStores]: Although the value stored to 'result' is used in the enclosing expression, the value is never actually read from 'result' # 418| int result = CM_SUCCESS; # 419| CmSurface2D * cmSurface = 0; # 420|-> if (device && d3dSurface && (result = device->CreateSurface2D(d3dSurface, cmSurface)) != CM_SUCCESS) # 421| throw CmRuntimeError(); # 422| return cmSurface; Error: CLANG_WARNING: intel-mediasdk-23.2.2-build/MediaSDK-intel-mediasdk-23.2.2/_studio/mfx_lib/encode_hw/h264/src/mfx_h264_encode_cm.cpp:431:34: warning[deadcode.DeadStores]: Although the value stored to 'result' is used in the enclosing expression, the value is never actually read from 'result' # 429| CmSurface2D * cmSurface = 0; # 430| mfxU32 cmSurfaceCount = 1; # 431|-> if (device && d3dSurface && (result = device->CreateSurface2DSubresource(d3dSurface, 1, &cmSurface, cmSurfaceCount)) != CM_SUCCESS) # 432| throw CmRuntimeError(); # 433| return cmSurface; Error: CLANG_WARNING: intel-mediasdk-23.2.2-build/MediaSDK-intel-mediasdk-23.2.2/_studio/mfx_lib/encode_hw/h264/src/mfx_h264_encode_cm.cpp:440:34: warning[deadcode.DeadStores]: Although the value stored to 'result' is used in the enclosing expression, the value is never actually read from 'result' # 438| int result = CM_SUCCESS; # 439| CmSurface2D * cmSurface = 0; # 440|-> if (device && d3dSurface && (result = device->CreateSurface2DbySubresourceIndex(d3dSurface, subResourceIndex, 0 , cmSurface)) != CM_SUCCESS) # 441| throw CmRuntimeError(); # 442| return cmSurface; Error: CLANG_WARNING: intel-mediasdk-23.2.2-build/MediaSDK-intel-mediasdk-23.2.2/_studio/mfx_lib/encode_hw/h264/src/mfx_h264_encode_cm.cpp:449:35: warning[deadcode.DeadStores]: Although the value stored to 'result' is used in the enclosing expression, the value is never actually read from 'result' # 447| int result = CM_SUCCESS; # 448| CmSurface2D * cmSurface = 0; # 449|-> if (device && (vaSurface) && (result = device->CreateSurface2D(vaSurface, cmSurface)) != CM_SUCCESS) # 450| throw CmRuntimeError(); # 451| return cmSurface; Error: CLANG_WARNING: intel-mediasdk-23.2.2-build/MediaSDK-intel-mediasdk-23.2.2/_studio/mfx_lib/encode_hw/h264/src/mfx_h264_encode_cm.cpp:492:20: warning[deadcode.DeadStores]: Although the value stored to 'result' is used in the enclosing expression, the value is never actually read from 'result' # 490| int result = CM_SUCCESS; # 491| CmSurface2D * cmSurface = 0; # 492|-> if (device && (result = device->CreateSurface2D(width, height, CM_SURFACE_FORMAT(fourcc), cmSurface)) != CM_SUCCESS) # 493| throw CmRuntimeError(); # 494| return cmSurface; Error: CLANG_WARNING: intel-mediasdk-23.2.2-build/MediaSDK-intel-mediasdk-23.2.2/_studio/mfx_lib/encode_hw/h264/src/mfx_h264_encode_cm.cpp:501:20: warning[deadcode.DeadStores]: Although the value stored to 'result' is used in the enclosing expression, the value is never actually read from 'result' # 499| int result = CM_SUCCESS; # 500| CmSurface2DUP * cmSurface = 0; # 501|-> if (device && (result = device->CreateSurface2DUP(width, height, CM_SURFACE_FORMAT(fourcc), mem, cmSurface)) != CM_SUCCESS) # 502| throw CmRuntimeError(); # 503| return cmSurface; Error: CLANG_WARNING: intel-mediasdk-23.2.2-build/MediaSDK-intel-mediasdk-23.2.2/_studio/mfx_lib/encode_hw/h264/src/mfx_h264_encode_cm.cpp:522:10: warning[deadcode.DeadStores]: Although the value stored to 'result' is used in the enclosing expression, the value is never actually read from 'result' # 520| int result = CM_SUCCESS; # 521| SurfaceIndex * index; # 522|-> if ((result = device->CreateVmeSurfaceG7_5(source, fwdRefs, bwdRefs, numFwdRefs, numBwdRefs, index)) != CM_SUCCESS) # 523| throw CmRuntimeError(); # 524| return index; Error: CLANG_WARNING: intel-mediasdk-23.2.2-build/MediaSDK-intel-mediasdk-23.2.2/_studio/mfx_lib/encode_hw/h264/src/mfx_h264_encode_cm.cpp:952:10: warning[deadcode.DeadStores]: Although the value stored to 'result' is used in the enclosing expression, the value is never actually read from 'result' # 950| for (gsH = numGroups, gsW = 1; gsH > gsW || gsW * gsH != numGroups; gsH = numGroups / ++gsW); # 951| # 952|-> if ((result = kernel->SetThreadCount(tsW * tsH * gsW * gsH)) != CM_SUCCESS) # 953| throw CmRuntimeError(); # 954| Error: CLANG_WARNING: intel-mediasdk-23.2.2-build/MediaSDK-intel-mediasdk-23.2.2/_studio/mfx_lib/encode_hw/h264/src/mfx_h264_encode_cm.cpp:958:10: warning[deadcode.DeadStores]: Although the value stored to 'result' is used in the enclosing expression, the value is never actually read from 'result' # 956| # 957| CmTask * cmTask = 0; # 958|-> if ((result = m_device->CreateTask(cmTask)) != CM_SUCCESS) # 959| throw CmRuntimeError(); # 960| Error: CLANG_WARNING: intel-mediasdk-23.2.2-build/MediaSDK-intel-mediasdk-23.2.2/_studio/mfx_lib/encode_hw/h264/src/mfx_h264_encode_cm.cpp:961:10: warning[deadcode.DeadStores]: Although the value stored to 'result' is used in the enclosing expression, the value is never actually read from 'result' # 959| throw CmRuntimeError(); # 960| # 961|-> if ((result = cmTask->AddKernel(kernel)) != CM_SUCCESS) # 962| throw CmRuntimeError(); # 963| Error: CLANG_WARNING: intel-mediasdk-23.2.2-build/MediaSDK-intel-mediasdk-23.2.2/_studio/mfx_lib/encode_hw/h264/src/mfx_h264_encode_cm.cpp:965:10: warning[deadcode.DeadStores]: Although the value stored to 'result' is used in the enclosing expression, the value is never actually read from 'result' # 963| # 964| CmThreadGroupSpace * cmThreadSpace = 0; # 965|-> if ((result = m_device->CreateThreadGroupSpace(tsW, tsH, gsW, gsH, cmThreadSpace)) != CM_SUCCESS) # 966| throw CmRuntimeError(); # 967| Error: CLANG_WARNING: intel-mediasdk-23.2.2-build/MediaSDK-intel-mediasdk-23.2.2/_studio/mfx_lib/encode_hw/h264/src/mfx_h264_encode_cm.cpp:969:10: warning[deadcode.DeadStores]: Although the value stored to 'result' is used in the enclosing expression, the value is never actually read from 'result' # 967| # 968| CmEvent * e = 0; # 969|-> if ((result = m_queue->EnqueueWithGroup(cmTask, e, cmThreadSpace)) != CM_SUCCESS) # 970| throw CmRuntimeError(); # 971| Error: CLANG_WARNING: intel-mediasdk-23.2.2-build/MediaSDK-intel-mediasdk-23.2.2/_studio/mfx_lib/encode_hw/h264/src/mfx_h264_encode_cm.cpp:997:10: warning[deadcode.DeadStores]: Although the value stored to 'result' is used in the enclosing expression, the value is never actually read from 'result' # 995| int result = CM_SUCCESS; # 996| # 997|-> if ((result = kernel->SetThreadCount(tsWidth * tsHeight)) != CM_SUCCESS) # 998| throw CmRuntimeError(); # 999| Error: CLANG_WARNING: intel-mediasdk-23.2.2-build/MediaSDK-intel-mediasdk-23.2.2/_studio/mfx_lib/encode_hw/h264/src/mfx_h264_encode_cm.cpp:1001:10: warning[deadcode.DeadStores]: Although the value stored to 'result' is used in the enclosing expression, the value is never actually read from 'result' # 999| # 1000| CmThreadSpace * cmThreadSpace = 0; # 1001|-> if ((result = m_device->CreateThreadSpace(tsWidth, tsHeight, cmThreadSpace)) != CM_SUCCESS) # 1002| throw CmRuntimeError(); # 1003| Error: CLANG_WARNING: intel-mediasdk-23.2.2-build/MediaSDK-intel-mediasdk-23.2.2/_studio/mfx_lib/encode_hw/h264/src/mfx_h264_encode_cm.cpp:1007:10: warning[deadcode.DeadStores]: Although the value stored to 'result' is used in the enclosing expression, the value is never actually read from 'result' # 1005| # 1006| CmTask * cmTask = 0; # 1007|-> if ((result = m_device->CreateTask(cmTask)) != CM_SUCCESS) # 1008| throw CmRuntimeError(); # 1009| Error: CLANG_WARNING: intel-mediasdk-23.2.2-build/MediaSDK-intel-mediasdk-23.2.2/_studio/mfx_lib/encode_hw/h264/src/mfx_h264_encode_cm.cpp:1010:10: warning[deadcode.DeadStores]: Although the value stored to 'result' is used in the enclosing expression, the value is never actually read from 'result' # 1008| throw CmRuntimeError(); # 1009| # 1010|-> if ((result = cmTask->AddKernel(kernel)) != CM_SUCCESS) # 1011| throw CmRuntimeError(); # 1012| Error: CLANG_WARNING: intel-mediasdk-23.2.2-build/MediaSDK-intel-mediasdk-23.2.2/_studio/mfx_lib/encode_hw/h264/src/mfx_h264_encode_cm.cpp:1014:10: warning[deadcode.DeadStores]: Although the value stored to 'result' is used in the enclosing expression, the value is never actually read from 'result' # 1012| # 1013| CmEvent * e = 0; # 1014|-> if ((result = m_queue->Enqueue(cmTask, e, cmThreadSpace)) != CM_SUCCESS) # 1015| throw CmRuntimeError(); # 1016| Error: CLANG_WARNING: intel-mediasdk-23.2.2-build/MediaSDK-intel-mediasdk-23.2.2/_studio/mfx_lib/encode_hw/h264/src/mfx_h264_encode_hw.cpp:594:9: warning[deadcode.DeadStores]: Value stored to 'checkSts' is never read # 592| MFX_RETURN(MFX_WRN_PARTIAL_ACCELERATION) // return immediately # 593| else if (checkSts == MFX_ERR_NONE && lpSts != MFX_ERR_NONE) # 594|-> checkSts = lpSts; # 595| # 596| SetDefaults(tmp, hwCaps, true, core->GetHWType(), core->GetVAType(), *pMFXGTConfig); Error: CLANG_WARNING: intel-mediasdk-23.2.2-build/MediaSDK-intel-mediasdk-23.2.2/_studio/mfx_lib/encode_hw/h264/src/mfx_h264_encode_hw.cpp:973:17: warning[deadcode.DeadStores]: Value stored to 'sts' is never read # 971| { # 972| MFX_AUTO_LTRACE(MFX_TRACE_LEVEL_HOTSPOTS, "MfxFrameAllocResponse Alloc"); # 973|-> sts = m_raw.Alloc(m_core, request, true); # 974| } # 975| } Error: CLANG_WARNING: intel-mediasdk-23.2.2-build/MediaSDK-intel-mediasdk-23.2.2/_studio/mfx_lib/encode_hw/h264/src/mfx_h264_encode_hw.cpp:1491:21: warning[deadcode.DeadStores]: Although the value stored to 'sts' is used in the enclosing expression, the value is never actually read from 'sts' # 1489| for (DdiTaskIter i = m_encoding.begin(); i != m_encoding.end(); ++i) # 1490| for (mfxU32 f = 0; f <= i->m_fieldPicFlag; f++) # 1491|-> while ((sts = QueryStatus(*i, i->m_fid[f])) == MFX_TASK_BUSY) # 1492| vm_time_sleep(1); # 1493| while (!m_encoding.empty()) Error: CLANG_WARNING: intel-mediasdk-23.2.2-build/MediaSDK-intel-mediasdk-23.2.2/_studio/mfx_lib/encode_hw/h264/src/mfx_h264_encode_hw.cpp:3658:29: warning[deadcode.DeadStores]: Value stored to 'bRecoding' is never read # 3656| m_brc.GetQpForRecode(nextTask->m_brcFrameParams, nextTask->m_brcFrameCtrl); # 3657| UpdateBRCParams(*nextTask); # 3658|-> bRecoding = true; # 3659| } # 3660| curTask = nextTask; Error: CLANG_WARNING: intel-mediasdk-23.2.2-build/MediaSDK-intel-mediasdk-23.2.2/_studio/mfx_lib/encode_hw/h264/src/mfx_h264_encode_hw_utils_new.cpp:1391:32: warning[deadcode.DeadStores]: Value stored to 'ref' during its initialization is never read # 1389| for (mfxU32 i = 0; i < 16 && ctrl->RejectedRefList[i].FrameOrder != static_cast<mfxU32>(MFX_FRAMEORDER_UNKNOWN); i++) # 1390| { # 1391|-> DpbFrame * ref = currDpb.End(); # 1392| if (!useInternalFrameOrder) # 1393| { Error: CLANG_WARNING: intel-mediasdk-23.2.2-build/MediaSDK-intel-mediasdk-23.2.2/_studio/mfx_lib/encode_hw/h264/src/mfx_h264_encode_hw_utils_new.cpp:1437:32: warning[deadcode.DeadStores]: Value stored to 'ref' during its initialization is never read # 1435| // adaptive marking for long-term references is supported only for progressive encoding # 1436| assert(task.GetPicStructForEncode() == MFX_PICSTRUCT_PROGRESSIVE); # 1437|-> DpbFrame * ref = currDpb.End(); # 1438| # 1439| if (!useInternalFrameOrder) Error: CLANG_WARNING: intel-mediasdk-23.2.2-build/MediaSDK-intel-mediasdk-23.2.2/_studio/mfx_lib/encode_hw/h264/src/mfx_h264_encode_hw_utils_new.cpp:3071:13: warning[deadcode.DeadStores]: Value stored to 'maxPixelHistDiff1' is never read # 3069| { # 3070| sumPixelHistDiff1 = sumPixelHistDiff0; # 3071|-> maxPixelHistDiff1 = maxPixelHistDiff0; # 3072| Weight = (1 << logWDc); # 3073| Offset = mfxI16(AveSampleDiff); Error: CLANG_WARNING: intel-mediasdk-23.2.2-build/MediaSDK-intel-mediasdk-23.2.2/_studio/mfx_lib/encode_hw/h264/src/mfx_h264_encode_hw_utils_new.cpp:3079:13: warning[deadcode.DeadStores]: Value stored to 'maxPixelHistDiff1' is never read # 3077| { # 3078| sumPixelHistDiff1 = sumPixelHistDiff2; # 3079|-> maxPixelHistDiff1 = maxPixelHistDiff2; # 3080| Weight = (1 << logWDc); # 3081| Offset = 0; Error: CLANG_WARNING: intel-mediasdk-23.2.2-build/MediaSDK-intel-mediasdk-23.2.2/_studio/mfx_lib/encode_hw/hevc/agnostic/hevcehw_base.cpp:138:9: warning[deadcode.DeadStores]: Value stored to 'nQ' is never read # 136| nQ += InitQueue<FT>(&FeatureBase::FreeTask, blocks); # 137| nQ += InitQueue<CLS>(&FeatureBase::Close, blocks); # 138|-> nQ += InitQueue<GVP>(&FeatureBase::GetVideoParam, blocks); # 139| } # 140| Error: CLANG_WARNING: intel-mediasdk-23.2.2-build/MediaSDK-intel-mediasdk-23.2.2/_studio/mfx_lib/encode_hw/mjpeg/src/mfx_mjpeg_encode_vaapi.cpp:140:5: warning[deadcode.DeadStores]: Value stored to 'vaSts' is never read # 138| } # 139| # 140|-> vaSts = vaGetConfigAttributes(m_vaDisplay, # 141| VAProfileJPEGBaseline, # 142| VAEntrypointEncPicture, Error: COMPILER_WARNING (CWE-697): intel-mediasdk-23.2.2-build/MediaSDK-intel-mediasdk-23.2.2/_studio/mfx_lib/encode_hw/mpeg2/src/mfx_mpeg2_encode_utils_hw.cpp: scope_hint: In function ‘mfxExtCodingOptionSPSPPS* MPEG2EncoderHW::GetExtCodingOptionsSPSPPS(mfxExtBuffer**, mfxU32)’ intel-mediasdk-23.2.2-build/MediaSDK-intel-mediasdk-23.2.2/_studio/mfx_lib/encode_hw/mpeg2/src/mfx_mpeg2_encode_utils_hw.cpp:135:19: warning[-Waddress]: comparing the result of pointer addition ‘((* ebuffers) + ((sizetype)(((long unsigned int)i) * 8)))’ and NULL # 135 | if((0 != (*ebuffers+i)) && ((*ebuffers+i)->BufferId == MFX_EXTBUFF_CODING_OPTION_SPSPPS)) # | ~~^~~~~~~~~~~~~~~~ # 133| for(mfxU32 i=0; i<nbuffers; i++) # 134| { # 135|-> if((0 != (*ebuffers+i)) && ((*ebuffers+i)->BufferId == MFX_EXTBUFF_CODING_OPTION_SPSPPS)) # 136| { # 137| return (mfxExtCodingOptionSPSPPS*)(*ebuffers+i); Error: CLANG_WARNING: intel-mediasdk-23.2.2-build/MediaSDK-intel-mediasdk-23.2.2/_studio/mfx_lib/encode_hw/mpeg2/src/mfx_mpeg2_encode_utils_hw.cpp:366:13: warning[deadcode.DeadStores]: Value stored to 'fcode' is never read # 364| pFrameParams->BitStreamFcodes |= (fcode & 0x0f)<<12; # 365| # 366|-> fcode=0; # 367| RANGE_TO_F_CODE (((mfxI32)pExParams->MVRangeP[1]), fcode); # 368| pFrameParams->BitStreamFcodes |= (fcode & 0x0f)<<8; Error: CLANG_WARNING: intel-mediasdk-23.2.2-build/MediaSDK-intel-mediasdk-23.2.2/_studio/mfx_lib/encode_hw/mpeg2/src/mfx_mpeg2_encode_utils_hw.cpp:377:13: warning[deadcode.DeadStores]: Value stored to 'fcode' is never read # 375| pFrameParams->BitStreamFcodes |= (fcode & 0x0f)<<12; # 376| # 377|-> fcode=0; # 378| RANGE_TO_F_CODE ((mfxI32)pExParams->MVRangeB[0][1], fcode); # 379| pFrameParams->BitStreamFcodes |= (fcode & 0x0f)<<8; Error: CLANG_WARNING: intel-mediasdk-23.2.2-build/MediaSDK-intel-mediasdk-23.2.2/_studio/mfx_lib/encode_hw/mpeg2/src/mfx_mpeg2_encode_utils_hw.cpp:381:13: warning[deadcode.DeadStores]: Value stored to 'fcode' is never read # 379| pFrameParams->BitStreamFcodes |= (fcode & 0x0f)<<8; # 380| # 381|-> fcode=0; # 382| RANGE_TO_F_CODE ((mfxI32)pExParams->MVRangeB[1][0],fcode); # 383| pFrameParams->BitStreamFcodes |= (fcode & 0x0f)<<4; Error: CLANG_WARNING: intel-mediasdk-23.2.2-build/MediaSDK-intel-mediasdk-23.2.2/_studio/mfx_lib/encode_hw/mpeg2/src/mfx_mpeg2_encode_utils_hw.cpp:385:13: warning[deadcode.DeadStores]: Value stored to 'fcode' is never read # 383| pFrameParams->BitStreamFcodes |= (fcode & 0x0f)<<4; # 384| # 385|-> fcode=0; # 386| RANGE_TO_F_CODE ((mfxI32)pExParams->MVRangeB[1][1], fcode); # 387| pFrameParams->BitStreamFcodes |= (fcode & 0x0f)<<0; Error: CLANG_WARNING: intel-mediasdk-23.2.2-build/MediaSDK-intel-mediasdk-23.2.2/_studio/mfx_lib/encode_hw/vp9/src/mfx_vp9_encode_hw.cpp:752:15: warning[deadcode.DeadStores]: Value stored to 'sts' during its initialization is never read # 750| # 751| eMFXHWType platform = m_pCore->GetHWType(); # 752|-> mfxStatus sts = SetFramesParams(curMfxPar, task, frameType, frameParam, platform); # 753| # 754| task.m_pRecFrame = 0; Error: CLANG_WARNING: intel-mediasdk-23.2.2-build/MediaSDK-intel-mediasdk-23.2.2/_studio/mfx_lib/encode_hw/vp9/src/mfx_vp9_encode_hw.cpp:776:5: warning[deadcode.DeadStores]: Value stored to 'sts' is never read # 774| } # 775| # 776|-> sts = DecideOnRefListAndDPBRefresh(curMfxPar, &task, m_dpb, frameParam, prevFrameOrderInRefStructure); # 777| # 778| task.m_frameParam = frameParam; Error: CLANG_WARNING: intel-mediasdk-23.2.2-build/MediaSDK-intel-mediasdk-23.2.2/_studio/mfx_lib/fei/h264_la/mfx_h264_la.cpp:508:13: warning[deadcode.DeadStores]: Value stored to 'sts' is never read # 506| request.Type = MfxHwH264Encode::MFX_MEMTYPE_D3D_INT; # 507| request.NumFrameMin = extOpaq->In.NumSurface; # 508|-> sts = m_raw.Alloc(m_core, request, true); # 509| } # 510| } Error: CLANG_WARNING: intel-mediasdk-23.2.2-build/MediaSDK-intel-mediasdk-23.2.2/_studio/mfx_lib/fei/h264_la/mfx_h264_la.cpp:943:17: warning[cplusplus.NewDeleteLeaks]: Potential leak of memory pointed to by 'pAsyncParams' # 941| if (m_SurfacesForOutput.size() > 0) # 942| { # 943|-> MFX_CHECK_STS(GetOpaqSurface(*m_core, m_video, m_SurfacesForOutput.front(), &pAsyncParams->output_surface)); # 944| m_SurfacesForOutput.pop_front(); # 945| aux->OutSurface = pAsyncParams->output_surface; Error: CLANG_WARNING: intel-mediasdk-23.2.2-build/MediaSDK-intel-mediasdk-23.2.2/_studio/mfx_lib/fei/h264_la/mfx_h264_la.cpp:1326:35: warning[core.NullDereference]: Access to field 'poc' results in a dereference of a null pointer (loaded from field 'VmeData') # 1324| } # 1325| # 1326|-> task->m_Curr.VmeData->poc = currTask.InputFrame.poc; # 1327| task->m_Curr.VmeData->encOrder = currTask.InputFrame.encFrameOrder; # 1328| task->m_Curr.VmeData->pocL0 = fwd ? currTask.RefFrame[REF_FORW].poc : 0xffffffff; Error: CLANG_WARNING: intel-mediasdk-23.2.2-build/MediaSDK-intel-mediasdk-23.2.2/_studio/mfx_lib/encode_hw/mpeg2/src/mfx_mpeg2_encode_utils_hw.cpp:28: included_from: Included from here. intel-mediasdk-23.2.2-build/MediaSDK-intel-mediasdk-23.2.2/_studio/mfx_lib/shared/include/mfx_mpeg2_enc_common.h:277:9: warning[deadcode.DeadStores]: Value stored to 'temp' is never read # 275| ptr ++; # 276| } # 277|-> temp = 0; # 278| if (ptr - pSH >= (mfxI32)len - 3) # 279| return false; Error: CLANG_WARNING: intel-mediasdk-23.2.2-build/MediaSDK-intel-mediasdk-23.2.2/_studio/mfx_lib/shared/include/mfx_mpeg2_enc_common.h:437:17: warning[deadcode.DeadStores]: Value stored to 'bitpos' is never read # 435| { # 436| ptr ++; # 437|-> bitpos = 0; # 438| } # 439| } Error: CLANG_WARNING: intel-mediasdk-23.2.2-build/MediaSDK-intel-mediasdk-23.2.2/_studio/mfx_lib/shared/src/libmfxsw_enc.cpp:77:9: warning[cplusplus.NewDeleteLeaks]: Potential leak of memory pointed to by 'pENC' # 75| # 76| // check error(s) # 77|-> if (MFX_ERR_NONE != mfxRes) # 78| { # 79| delete pENC; Error: CLANG_WARNING: intel-mediasdk-23.2.2-build/MediaSDK-intel-mediasdk-23.2.2/_studio/mfx_lib/shared/src/mfx_brc_common.cpp:807:13: warning[deadcode.DeadStores]: Value stored to 'bNeedUpdateQP' is never read # 805| UpdateQPParams(quant_new ,picType, m_ctx, 0, m_ctx.QuantMin , m_ctx.QuantMax, layer, m_par.iDQp, frame_par->FrameType & MFX_FRAMETYPE_REF, ParClassAPQ); # 806| } # 807|-> bNeedUpdateQP = false; # 808| } # 809| SetRecodeParams(brcSts,quant,quant_new, m_ctx.QuantMin , m_ctx.QuantMax, m_ctx, status); Error: CLANG_WARNING: intel-mediasdk-23.2.2-build/MediaSDK-intel-mediasdk-23.2.2/_studio/mfx_lib/shared/src/mfx_brc_common.cpp:876:20: warning[deadcode.DeadStores]: Value stored to 'quant_new' during its initialization is never read # 874| if (!m_ctx.bPanic&& (!oldScene) && bNeedUpdateQP) # 875| { # 876|-> mfxI32 quant_new = qpY; # 877| # 878| //Update QP Error: CLANG_WARNING: intel-mediasdk-23.2.2-build/MediaSDK-intel-mediasdk-23.2.2/_studio/mfx_lib/shared/src/mfx_common_int.cpp:584:9: warning[deadcode.DeadStores]: Although the value stored to 'sts' is used in the enclosing expression, the value is never actually read from 'sts' # 582| mfxStatus sts; # 583| return # 584|-> sts = CheckFramePointers(surface->Info, surface->Data); # 585| } # 586| Error: CLANG_WARNING: intel-mediasdk-23.2.2-build/MediaSDK-intel-mediasdk-23.2.2/_studio/mfx_lib/shared/src/mfx_h264_fei_vaapi.cpp:463:28: warning[core.uninitialized.Assign]: The left expression of the compound assignment is an uninitialized value. The computed value will also be garbage # 461| # 462| if (IsOn(feiCtrl->DownsampleReference[0])) # 463|-> l0surfs->flags |= VA_PICTURE_STATS_CONTENT_UPDATED; # 464| # 465| statParams.stats_params.past_references = l0surfs; Error: CLANG_WARNING: intel-mediasdk-23.2.2-build/MediaSDK-intel-mediasdk-23.2.2/_studio/mfx_lib/shared/src/mfx_h264_fei_vaapi.cpp:498:28: warning[core.uninitialized.Assign]: The left expression of the compound assignment is an uninitialized value. The computed value will also be garbage # 496| # 497| if (IsOn(feiCtrl->DownsampleReference[1])) # 498|-> l1surfs->flags |= VA_PICTURE_STATS_CONTENT_UPDATED; # 499| # 500| statParams.stats_params.future_references = l1surfs; Error: CLANG_WARNING: intel-mediasdk-23.2.2-build/MediaSDK-intel-mediasdk-23.2.2/_studio/mfx_lib/shared/src/mfx_vc1_dec_common.cpp:254:12: warning[deadcode.DeadStores]: Value stored to 'tempData' during its initialization is never read # 252| mfxI32 bitOffset = 31; # 253| mfxI32 SHLen = 0; //in bits # 254|-> mfxU32 tempData = GetDWord_s(bs->Data); # 255| # 256| mfxBitstream bs_out = {}; Error: CLANG_WARNING: intel-mediasdk-23.2.2-build/MediaSDK-intel-mediasdk-23.2.2/_studio/mfx_lib/vpp/src/mfx_vpp_main.cpp:31: included_from: Included from here. intel-mediasdk-23.2.2-build/MediaSDK-intel-mediasdk-23.2.2/_studio/mfx_lib/vpp/include/mfx_vpp_sw.h:43: included_from: Included from here. intel-mediasdk-23.2.2-build/MediaSDK-intel-mediasdk-23.2.2/_studio/mfx_lib/vpp/include/mfx_vpp_hw.h:552:28: warning[deadcode.DeadStores]: Value stored to 'tmp' during its initialization is never read # 550| // Ratio between framerates is fractional, need to find # 551| // common factors # 552|-> mfxU32 tmp = high; # 553| while(multiplier<100000) # 554| { Error: CLANG_WARNING: intel-mediasdk-23.2.2-build/MediaSDK-intel-mediasdk-23.2.2/_studio/mfx_lib/vpp/src/mfx_vpp_service.cpp:322:17: warning[deadcode.DeadStores]: Value stored to 'sts' is never read # 320| for (i = m_savedLocked[frame]; i < m_pSurface[frame].Data.Locked; i++) # 321| { # 322|-> sts = m_core->IncreaseReference( m_ptrDataTab[frame] ); # 323| } # 324| } Error: CLANG_WARNING: intel-mediasdk-23.2.2-build/MediaSDK-intel-mediasdk-23.2.2/_studio/mfx_lib/vpp/src/mfx_vpp_service.cpp:331:17: warning[deadcode.DeadStores]: Value stored to 'sts' is never read # 329| for (i = m_pSurface[frame].Data.Locked; i < m_savedLocked[frame]; i++) # 330| { # 331|-> sts = m_core->DecreaseReference( m_ptrDataTab[frame] ); # 332| } # 333| } Error: CLANG_WARNING: intel-mediasdk-23.2.2-build/MediaSDK-intel-mediasdk-23.2.2/_studio/mfx_lib/vpp/src/mfx_vpp_sw_core.cpp:229:52: warning[core.UndefinedBinaryOperatorResult]: The right operand of '<' is a garbage value # 227| # 228| if( m_bOpaqMode[VPP_IN] && # 229|-> (m_requestOpaq[VPP_IN].NumFrameMin < cntrlRequest[VPP_IN].NumFrameMin || # 230| m_requestOpaq[VPP_IN].NumFrameSuggested < cntrlRequest[VPP_IN].NumFrameSuggested) ) # 231| { Error: CLANG_WARNING: intel-mediasdk-23.2.2-build/MediaSDK-intel-mediasdk-23.2.2/_studio/mfx_lib/vpp/src/mfx_vpp_sw_core.cpp:236:53: warning[core.UndefinedBinaryOperatorResult]: The right operand of '<' is a garbage value # 234| # 235| if( m_bOpaqMode[VPP_OUT] && # 236|-> (m_requestOpaq[VPP_OUT].NumFrameMin < cntrlRequest[VPP_OUT].NumFrameMin || # 237| m_requestOpaq[VPP_OUT].NumFrameSuggested < cntrlRequest[VPP_OUT].NumFrameSuggested) ) # 238| { Error: CLANG_WARNING: intel-mediasdk-23.2.2-build/MediaSDK-intel-mediasdk-23.2.2/_studio/shared/asc/src/asc.cpp:406:19: warning[core.CallAndMessage]: Called C++ object pointer is null # 404| if (Query_ASCCmDevice()) # 405| { # 406|-> res = m_device->CreateSurface2DUP(m_dataIn->layer->Extended_Width, m_dataIn->layer->Extended_Height, CM_SURFACE_FORMAT_A8, (void *)m_videoData[i]->layer.Image.data, m_videoData[i]->layer.gpuImage); # 407| SCD_CHECK_CM_ERR(res, MFX_ERR_DEVICE_FAILED); # 408| res = m_videoData[i]->layer.gpuImage->GetIndex(m_videoData[i]->layer.idxImage); Error: CLANG_WARNING: intel-mediasdk-23.2.2-build/MediaSDK-intel-mediasdk-23.2.2/_studio/shared/asc/src/asc.cpp:1843:5: warning[deadcode.DeadStores]: Value stored to 'Buffer2' is never read # 1841| *transfer; # 1842| transfer = Buffer2; # 1843|-> Buffer2 = Buffer1; # 1844| Buffer1 = transfer; # 1845| } Error: CLANG_WARNING: intel-mediasdk-23.2.2-build/MediaSDK-intel-mediasdk-23.2.2/_studio/shared/asc/src/asc.cpp:1844:5: warning[deadcode.DeadStores]: Value stored to 'Buffer1' is never read # 1842| transfer = Buffer2; # 1843| Buffer2 = Buffer1; # 1844|-> Buffer1 = transfer; # 1845| } # 1846| Error: CLANG_WARNING: intel-mediasdk-23.2.2-build/MediaSDK-intel-mediasdk-23.2.2/_studio/shared/asc/src/motion_estimation_engine.cpp:271:21: warning[deadcode.DeadStores]: Value stored to 'mainDistance' is never read # 269| current[fPos] = predMV; # 270| outSAD[fPos] = bestSAD; # 271|-> mainDistance = distance; # 272| foundBetter = false; # 273| } Error: CLANG_WARNING: intel-mediasdk-23.2.2-build/MediaSDK-intel-mediasdk-23.2.2/_studio/shared/asc/src/motion_estimation_engine.cpp:272:21: warning[deadcode.DeadStores]: Value stored to 'foundBetter' is never read # 270| outSAD[fPos] = bestSAD; # 271| mainDistance = distance; # 272|-> foundBetter = false; # 273| } # 274| } Error: CLANG_WARNING: intel-mediasdk-23.2.2-build/MediaSDK-intel-mediasdk-23.2.2/_studio/shared/src/libmfx_allocator_vaapi.cpp:326:18: warning[core.CallAndMessage]: 2nd function call argument is an uninitialized value # 324| FillSurfaceAttrs(attrib, format, request->Info.FourCC, va_fourcc, request->Type); # 325| # 326|-> va_res = vaCreateSurfaces(self->m_pVADisplay, # 327| format, # 328| request->Info.Width, request->Info.Height, Error: CLANG_WARNING: intel-mediasdk-23.2.2-build/MediaSDK-intel-mediasdk-23.2.2/_studio/shared/src/libmfx_core.cpp:61:9: warning[deadcode.DeadStores]: Value stored to 'platform' is never read # 59| } # 60| # 61|-> platform = {}; # 62| MFX_RETURN(MFX_ERR_UNSUPPORTED); # 63| } Error: CLANG_WARNING: intel-mediasdk-23.2.2-build/MediaSDK-intel-mediasdk-23.2.2/_studio/shared/src/libmfx_core.cpp:1476:5: warning[deadcode.DeadStores]: Value stored to 'sts' is never read # 1474| // system memories were passed # 1475| // use common way to copy frames # 1476|-> sts = CoreDoSWFastCopy(*pDst, *pSrc, copyFlag); # 1477| # 1478| if (isDstLocked) Error: CLANG_WARNING: intel-mediasdk-23.2.2-build/MediaSDK-intel-mediasdk-23.2.2/_studio/shared/umc/codec/color_space_converter/src/umc_deinterlacing.cpp:157:13: warning[core.NullDereference]: Array access (from variable 'pdst') results in a null pointer dereference # 155| # 156| for (y = 3; y <= h - 3; y += 2) { # 157|-> pdst[0] = psrc[0]; # 158| pdst[w - 1] = psrc[w - 1]; # 159| Error: CLANG_WARNING: intel-mediasdk-23.2.2-build/MediaSDK-intel-mediasdk-23.2.2/_studio/shared/umc/codec/color_space_converter/src/umc_deinterlacing.cpp:157:15: warning[core.NullDereference]: Array access (from variable 'psrc') results in a null pointer dereference # 155| # 156| for (y = 3; y <= h - 3; y += 2) { # 157|-> pdst[0] = psrc[0]; # 158| pdst[w - 1] = psrc[w - 1]; # 159| Error: CLANG_WARNING: intel-mediasdk-23.2.2-build/MediaSDK-intel-mediasdk-23.2.2/_studio/shared/umc/codec/h264_dec/src/umc_h264_dec_bitstream_headers.cpp:25: included_from: Included from here. intel-mediasdk-23.2.2-build/MediaSDK-intel-mediasdk-23.2.2/_studio/shared/umc/codec/h264_dec/include/umc_h264_bitstream_headers.h:392:5: warning[core.BitwiseShift]: Right operand is negative in right shift # 390| # 391| CheckBitsLeft(n); # 392|-> h264GetBits(m_pbs, m_bitOffset, n, w); # 393| return(w); # 394| } Error: CLANG_WARNING: intel-mediasdk-23.2.2-build/MediaSDK-intel-mediasdk-23.2.2/_studio/shared/umc/codec/h264_dec/include/umc_h264_bitstream_headers.h:413:5: warning[core.BitwiseShift]: Right shift overflows the capacity of 'uint32_t' # 411| # 412| CheckBitsLeft(1); # 413|-> GetBits1(m_pbs, m_bitOffset, w); # 414| return (uint8_t)w; # 415| } Error: CLANG_WARNING: intel-mediasdk-23.2.2-build/MediaSDK-intel-mediasdk-23.2.2/_studio/shared/umc/codec/h264_dec/src/umc_h264_dec_bitstream_headers.cpp:2056:17: warning[deadcode.DeadStores]: Value stored to 'reordering_of_pic_nums_idc' is never read # 2054| { # 2055| reorder_idx = 0; # 2056|-> reordering_of_pic_nums_idc = 0; # 2057| # 2058| // Get reorder idc,pic_num pairs until idc==3 Error: CLANG_WARNING: intel-mediasdk-23.2.2-build/MediaSDK-intel-mediasdk-23.2.2/_studio/shared/umc/codec/h264_dec/src/umc_h264_dec_bitstream_headers.cpp:2095:21: warning[deadcode.DeadStores]: Value stored to 'reordering_of_pic_nums_idc' is never read # 2093| // Get reorder idc,pic_num pairs until idc==3 # 2094| reorder_idx = 0; # 2095|-> reordering_of_pic_nums_idc = 0; # 2096| for (;;) # 2097| { Error: CLANG_WARNING: intel-mediasdk-23.2.2-build/MediaSDK-intel-mediasdk-23.2.2/_studio/shared/umc/codec/h264_dec/src/umc_h264_mfx_supplier.cpp:1242:17: warning[deadcode.DeadStores]: Value stored to 'sts' is never read # 1240| if (type == MFX_HW_UNKNOWN) # 1241| { # 1242|-> sts = MFX_ERR_UNSUPPORTED; # 1243| out->Protected = 0; # 1244| } Error: CLANG_WARNING: intel-mediasdk-23.2.2-build/MediaSDK-intel-mediasdk-23.2.2/_studio/shared/umc/codec/h264_dec/src/umc_h264_nal_spl.cpp:209:13: warning[deadcode.DeadStores]: Value stored to 'size' is never read # 207| startCodeSize1 = 0; # 208| source += size; # 209|-> size = 0; # 210| } # 211| Error: CLANG_WARNING: intel-mediasdk-23.2.2-build/MediaSDK-intel-mediasdk-23.2.2/_studio/shared/umc/codec/h264_dec/src/umc_h264_nal_spl.cpp:316:17: warning[deadcode.DeadStores]: Value stored to 'zeroCount' is never read # 314| size -= i + 1; # 315| pb++; // remove 0x01 symbol # 316|-> zeroCount = 0; # 317| if (size >= 1) # 318| { Error: CLANG_WARNING: intel-mediasdk-23.2.2-build/MediaSDK-intel-mediasdk-23.2.2/_studio/shared/umc/codec/h264_dec/src/umc_h264_nal_spl.cpp:350:9: warning[deadcode.DeadStores]: Value stored to 'zeroCount' is never read # 348| pb -= zeroCount; # 349| size = zeroCount; # 350|-> zeroCount = 0; # 351| startCodeSize = 0; # 352| return -1; Error: CLANG_WARNING: intel-mediasdk-23.2.2-build/MediaSDK-intel-mediasdk-23.2.2/_studio/shared/umc/codec/h265_dec/src/umc_h265_sei.cpp:24: included_from: Included from here. intel-mediasdk-23.2.2-build/MediaSDK-intel-mediasdk-23.2.2/_studio/shared/umc/codec/h265_dec/include/umc_h265_bitstream_headers.h:378:5: warning[core.BitwiseShift]: Right operand is negative in right shift # 376| # 377| CheckBitsLeft(n); # 378|-> GetNBits(m_pbs, m_bitOffset, n, w); # 379| return(w); # 380| } Error: CLANG_WARNING: intel-mediasdk-23.2.2-build/MediaSDK-intel-mediasdk-23.2.2/_studio/shared/umc/codec/h265_dec/src/umc_h265_bitstream_headers.cpp:25: included_from: Included from here. intel-mediasdk-23.2.2-build/MediaSDK-intel-mediasdk-23.2.2/_studio/shared/umc/codec/h265_dec/include/umc_h265_bitstream_headers.h:378:5: warning[core.BitwiseShift]: Right shift by '32' overflows the capacity of 'uint32_t' # 376| # 377| CheckBitsLeft(n); # 378|-> GetNBits(m_pbs, m_bitOffset, n, w); # 379| return(w); # 380| } Error: CLANG_WARNING: intel-mediasdk-23.2.2-build/MediaSDK-intel-mediasdk-23.2.2/_studio/shared/umc/codec/h265_dec/src/umc_h265_frame.cpp:26: included_from: Included from here. intel-mediasdk-23.2.2-build/MediaSDK-intel-mediasdk-23.2.2/_studio/shared/umc/codec/h265_dec/include/umc_h265_task_supplier.h:32: included_from: Included from here. intel-mediasdk-23.2.2-build/MediaSDK-intel-mediasdk-23.2.2/_studio/shared/umc/codec/h265_dec/include/umc_h265_frame_info.h:29: included_from: Included from here. intel-mediasdk-23.2.2-build/MediaSDK-intel-mediasdk-23.2.2/_studio/shared/umc/codec/h265_dec/include/umc_h265_slice_decoding.h:29: included_from: Included from here. intel-mediasdk-23.2.2-build/MediaSDK-intel-mediasdk-23.2.2/_studio/shared/umc/codec/h265_dec/include/umc_h265_bitstream_headers.h:473:9: warning[deadcode.DeadStores]: Value stored to 'remainingBits' is never read # 471| } # 472| GetNBits((*ppBitStream), (*pBitOffset),length, info); # 473|-> remainingBits -= length; # 474| } # 475| Error: CLANG_WARNING: intel-mediasdk-23.2.2-build/MediaSDK-intel-mediasdk-23.2.2/_studio/shared/umc/codec/h265_dec/src/umc_h265_mfx_utils.cpp:505:28: warning[core.NullDereference]: Access to field 'DataOffset' results in a dereference of a null pointer (loaded from variable 'bs') # 503| if (!m_isSPSFound) // move point to first start code # 504| { # 505|-> bs->DataOffset = (mfxU32)((mfxU8*)data->GetDataPointer() - (mfxU8*)data->GetBufferPointer()); # 506| bs->DataLength = (mfxU32)data->GetDataSize(); # 507| } Error: CLANG_WARNING: intel-mediasdk-23.2.2-build/MediaSDK-intel-mediasdk-23.2.2/_studio/shared/umc/codec/h265_dec/src/umc_h265_mfx_utils.cpp:682:9: warning[deadcode.DeadStores]: Although the value stored to 'umcRes' is used in the enclosing expression, the value is never actually read from 'umcRes' # 680| # 681| return # 682|-> umcRes = supplier->GetInfo(params); # 683| } # 684| Error: CLANG_WARNING: intel-mediasdk-23.2.2-build/MediaSDK-intel-mediasdk-23.2.2/_studio/shared/umc/codec/h265_dec/src/umc_h265_mfx_utils.cpp:953:17: warning[deadcode.DeadStores]: Value stored to 'sts' is never read # 951| if (type == MFX_HW_UNKNOWN) # 952| { # 953|-> sts = MFX_ERR_UNSUPPORTED; # 954| out->Protected = 0; # 955| } Error: CLANG_WARNING: intel-mediasdk-23.2.2-build/MediaSDK-intel-mediasdk-23.2.2/_studio/shared/umc/codec/h265_dec/src/umc_h265_nal_spl.cpp:218:13: warning[deadcode.DeadStores]: Value stored to 'size' is never read # 216| startCodeSize1 = 0; # 217| source += size; # 218|-> size = 0; # 219| } # 220| Error: CLANG_WARNING: intel-mediasdk-23.2.2-build/MediaSDK-intel-mediasdk-23.2.2/_studio/shared/umc/codec/h265_dec/src/umc_h265_slice_decoding.cpp:481:125: warning[core.DivideZero]: Division by zero # 479| for (rIdx = 0; rIdx <= m_SliceHeader.m_numRefIdx[0] - 1; rIdx++) # 480| { # 481|-> cIdx = refPicListModification.ref_pic_list_modification_flag_l0 ? refPicListModification.list_entry_l0[rIdx] : rIdx % numPicTotalCurr; # 482| m_SliceHeader.m_RefPOCList[0][rIdx] = m_SliceHeader.m_RpsPOCCurrList0[cIdx]; # 483| } Error: CLANG_WARNING: intel-mediasdk-23.2.2-build/MediaSDK-intel-mediasdk-23.2.2/_studio/shared/umc/codec/h265_dec/src/umc_h265_task_supplier.cpp:1269:18: warning[cplusplus.NewDelete]: Use of memory allocated with size zero # 1267| uint32_t *rowBd = h265_new_array_throw<uint32_t>(rows); # 1268| # 1269|-> colBd[0] = 0; # 1270| for (uint32_t i = 0; i < pps.num_tile_columns - 1; i++) # 1271| { Error: CLANG_WARNING: intel-mediasdk-23.2.2-build/MediaSDK-intel-mediasdk-23.2.2/_studio/shared/umc/codec/h265_dec/src/umc_h265_task_supplier.cpp:1275:18: warning[cplusplus.NewDelete]: Use of memory allocated with size zero # 1273| } # 1274| # 1275|-> rowBd[0] = 0; # 1276| for (uint32_t i = 0; i < pps.num_tile_rows - 1; i++) # 1277| { Error: CLANG_WARNING: intel-mediasdk-23.2.2-build/MediaSDK-intel-mediasdk-23.2.2/_studio/shared/umc/codec/h265_dec/src/umc_h265_task_supplier.cpp:1290:25: warning[core.UndefinedBinaryOperatorResult]: The right operand of '>=' is a garbage value # 1288| for (uint32_t j = 0; j < columns; j++) # 1289| { # 1290|-> if (tbX >= colBd[j]) # 1291| { # 1292| tileX = j; Error: CLANG_WARNING: intel-mediasdk-23.2.2-build/MediaSDK-intel-mediasdk-23.2.2/_studio/shared/umc/codec/h265_dec/src/umc_h265_task_supplier.cpp:1298:25: warning[core.UndefinedBinaryOperatorResult]: The right operand of '>=' is a garbage value # 1296| for (uint32_t j = 0; j < rows; j++) # 1297| { # 1298|-> if (tbY >= rowBd[j]) # 1299| { # 1300| tileY = j; Error: CLANG_WARNING: intel-mediasdk-23.2.2-build/MediaSDK-intel-mediasdk-23.2.2/_studio/shared/umc/codec/h265_dec/src/umc_h265_task_supplier.cpp:1780:58: warning[core.CallAndMessage]: Called C++ object pointer is null # 1778| # 1779| m_checkCRAInsideResetProcess = false; # 1780|-> pSource->MoveDataPointer(int32_t(pSource->GetDataSize() - moveToSpsOffset)); # 1781| m_pNALSplitter->Reset(); # 1782| return UMC::UMC_NTF_NEW_RESOLUTION; Error: CLANG_WARNING: intel-mediasdk-23.2.2-build/MediaSDK-intel-mediasdk-23.2.2/_studio/shared/umc/codec/h265_dec/src/umc_h265_task_supplier.cpp:1856:33: warning[core.CallAndMessage]: Called C++ object pointer is null # 1854| if (AddSlice(0, !pSource) == UMC::UMC_OK) # 1855| { # 1856|-> pSource->MoveDataPointer(- size - 3); # 1857| return UMC::UMC_OK; # 1858| } Error: CLANG_WARNING: intel-mediasdk-23.2.2-build/MediaSDK-intel-mediasdk-23.2.2/_studio/shared/umc/codec/h265_dec/src/umc_h265_task_supplier.cpp:1859:47: warning[core.CallAndMessage]: Called C++ object pointer is null # 1857| return UMC::UMC_OK; # 1858| } # 1859|-> moveToSpsOffset = pSource->GetDataSize() + size + 3; # 1860| continue; # 1861| } Error: CLANG_WARNING: intel-mediasdk-23.2.2-build/MediaSDK-intel-mediasdk-23.2.2/_studio/shared/umc/codec/jpeg_dec/src/jpegdec.cpp:1812:11: warning[deadcode.DeadStores]: Value stored to 'status' is never read # 1810| } # 1811| # 1812|-> status = mfxsCopy_8u(pSrc,pDst,srcWidth); # 1813| pDst += srcStep; # 1814| Error: CLANG_WARNING: intel-mediasdk-23.2.2-build/MediaSDK-intel-mediasdk-23.2.2/_studio/shared/umc/codec/jpeg_dec/src/jpegdec.cpp:1815:11: warning[deadcode.DeadStores]: Value stored to 'status' is never read # 1813| pDst += srcStep; # 1814| # 1815|-> status = mfxsCopy_8u(pSrc,pDst,srcWidth); # 1816| } # 1817| Error: CLANG_WARNING: intel-mediasdk-23.2.2-build/MediaSDK-intel-mediasdk-23.2.2/_studio/shared/umc/codec/jpeg_dec/src/jpegdec.cpp:2535:13: warning[deadcode.DeadStores]: Value stored to 'dstStep' during its initialization is never read # 2533| uint8_t* lnz = 0; # 2534| uint8_t* dst = 0; # 2535|-> int dstStep = m_ccWidth; # 2536| int status; # 2537| CJPEGColorComponent* curr_comp; Error: CLANG_WARNING: intel-mediasdk-23.2.2-build/MediaSDK-intel-mediasdk-23.2.2/_studio/shared/umc/codec/jpeg_dec/src/jpegdec.cpp:2635:13: warning[deadcode.DeadStores]: Value stored to 'dstStep' during its initialization is never read # 2633| uint8_t* dst = 0; # 2634| uint8_t* p = 0; # 2635|-> int dstStep = m_ccWidth; # 2636| uint16_t* qtbl; # 2637| int status; Error: CLANG_WARNING: intel-mediasdk-23.2.2-build/MediaSDK-intel-mediasdk-23.2.2/_studio/shared/umc/codec/jpeg_dec/src/jpegdec.cpp:2702:13: warning[deadcode.DeadStores]: Value stored to 'dstStep' during its initialization is never read # 2700| uint32_t mcu_col; # 2701| uint8_t* dst = 0; # 2702|-> int dstStep = m_ccWidth; # 2703| uint16_t* qtbl; # 2704| int status; Error: CLANG_WARNING: intel-mediasdk-23.2.2-build/MediaSDK-intel-mediasdk-23.2.2/_studio/shared/umc/codec/jpeg_dec/src/jpegdec.cpp:2807:13: warning[deadcode.DeadStores]: Value stored to 'dstStep' during its initialization is never read # 2805| uint32_t mcu_col; # 2806| uint8_t* dst = 0; # 2807|-> int dstStep = m_ccWidth; # 2808| uint16_t* qtbl; # 2809| int status; Error: CLANG_WARNING: intel-mediasdk-23.2.2-build/MediaSDK-intel-mediasdk-23.2.2/_studio/shared/umc/codec/jpeg_dec/src/jpegdec.cpp:2912:13: warning[deadcode.DeadStores]: Value stored to 'dstStep' during its initialization is never read # 2910| uint32_t mcu_col; # 2911| uint8_t* dst = 0; # 2912|-> int dstStep = m_ccWidth; # 2913| uint16_t* qtbl; # 2914| int status; Error: CLANG_WARNING: intel-mediasdk-23.2.2-build/MediaSDK-intel-mediasdk-23.2.2/_studio/shared/umc/codec/jpeg_dec/src/jpegdec.cpp:3141:7: warning[deadcode.DeadStores]: Value stored to 'status' is never read # 3139| if(m_dst.precision <= 8) # 3140| { # 3141|-> status = mfxiAndC_16u_C1IR(0xFF, (uint16_t*)pPrevRow, m_dst.width*sizeof(int16_t),roi); # 3142| status = mfxiConvert_16u8u_C1R((uint16_t*)pPrevRow,m_dst.width*sizeof(int16_t),pDst8u,dstStep,roi); # 3143| } Error: CLANG_WARNING: intel-mediasdk-23.2.2-build/MediaSDK-intel-mediasdk-23.2.2/_studio/shared/umc/codec/jpeg_dec/src/jpegdec.cpp:3662:11: warning[deadcode.DeadStores]: Value stored to 'jerr' is never read # 3660| mfxsZero_16s(pMCUBuf,m_numxMCU * m_nblock * DCTSIZE2); # 3661| # 3662|-> jerr = DecodeHuffmanMCURowBL(pMCUBuf, 0, m_numxMCU); # 3663| // if(JPEG_OK != jerr) # 3664| // i = m_numyMCU; Error: CLANG_WARNING: intel-mediasdk-23.2.2-build/MediaSDK-intel-mediasdk-23.2.2/_studio/shared/umc/codec/jpeg_dec/src/umc_jpeg_frame_constructor.cpp:121:13: warning[deadcode.DeadStores]: Value stored to 'ffCount' is never read # 119| if (!source[0]) # 120| { # 121|-> ffCount = 0; # 122| } # 123| else Error: CLANG_WARNING: intel-mediasdk-23.2.2-build/MediaSDK-intel-mediasdk-23.2.2/_studio/shared/umc/codec/jpeg_dec/src/umc_jpeg_frame_constructor.cpp:136:5: warning[deadcode.DeadStores]: Value stored to 'ffCount' is never read # 134| source -= ffCount; # 135| size = ffCount; # 136|-> ffCount = 0; # 137| startCodeSize = 0; # 138| return 0; Error: CLANG_WARNING: intel-mediasdk-23.2.2-build/MediaSDK-intel-mediasdk-23.2.2/_studio/shared/umc/codec/jpeg_dec/src/umc_mjpeg_mfx_decode_hw.cpp:411:16: warning[deadcode.DeadStores]: Value stored to 'chunkSize' during its initialization is never read # 409| { # 410| // get chunk size # 411|-> size_t chunkSize = (i + 1 < pAuxData->count) ? # 412| (pAuxData->offsets[i + 1] - pAuxData->offsets[i]) : # 413| (srcSize - pAuxData->offsets[i]); Error: CLANG_WARNING: intel-mediasdk-23.2.2-build/MediaSDK-intel-mediasdk-23.2.2/_studio/shared/umc/codec/jpeg_enc/src/jpegenc.cpp:2396:30: warning[core.NullDereference]: Array access (from variable 'pSrc8u') results in a null pointer dereference # 2394| for(int j=0; j<roi.width; j++) # 2395| { # 2396|-> pDst8u[0][j] = pSrc8u[j*4 + 2]; # 2397| pDst8u[1][j] = pSrc8u[j*4 + 1]; # 2398| pDst8u[2][j] = pSrc8u[j*4 + 0]; Error: CLANG_WARNING: intel-mediasdk-23.2.2-build/MediaSDK-intel-mediasdk-23.2.2/_studio/shared/umc/codec/jpeg_enc/src/umc_mjpeg_video_encoder.cpp:145:25: warning[core.CallAndMessage]: 1st function call argument is an uninitialized value # 143| prevNumPieces = 0; # 144| # 145|-> for(uint32_t i=0; i<m_pics[*fieldNum]->m_scans.size(); i++) # 146| { # 147| if(prevNumPieces <= *piecePosInField && *piecePosInField < prevNumPieces + m_pics[*fieldNum]->m_scans[i]->GetNumPieces()) Error: CLANG_WARNING: intel-mediasdk-23.2.2-build/MediaSDK-intel-mediasdk-23.2.2/_studio/shared/umc/codec/jpeg_enc/src/umc_mjpeg_video_encoder.cpp:594:18: warning[core.CallAndMessage]: 8th function call argument is an uninitialized value # 592| else # 593| { # 594|-> status = m_enc[threadNumber]->SetParams(jmode, # 595| jdstColor, # 596| jss, Error: CLANG_WARNING: intel-mediasdk-23.2.2-build/MediaSDK-intel-mediasdk-23.2.2/_studio/shared/umc/codec/jpeg_enc/src/umc_mjpeg_video_encoder.cpp:624:5: warning[core.CallAndMessage]: 1st function call argument is an uninitialized value # 622| return UMC_ERR_FAILED; # 623| # 624|-> m_frame->m_pics[numField]->m_scans[numScan]->m_pieceLocation[piecePosInScan] = threadNumber; //m_pOutputBuffer[numPic].get()->m_pieceLocation[numPiece] = threadNumber; # 625| m_frame->m_pics[numField]->m_scans[numScan]->m_pieceOffset[piecePosInScan] = m_pBitstreamBuffer[threadNumber]->GetDataSize(); //m_pOutputBuffer[numPic].get()->m_pieceOffset[numPiece] = m_pBitstreamBuffer[threadNumber].get()->GetDataSize(); # 626| m_frame->m_pics[numField]->m_scans[numScan]->m_pieceSize[piecePosInScan] = streamOut.GetPosition(); //m_pOutputBuffer[numPic].get()->m_pieceSize[numPiece] = streamOut.GetPosition(); Error: CLANG_WARNING: intel-mediasdk-23.2.2-build/MediaSDK-intel-mediasdk-23.2.2/_studio/shared/umc/codec/mpeg2_dec/src/umc_mpeg2_bitstream.cpp:407:13: warning[deadcode.DeadStores]: Value stored to 'cc1' is never read # 405| cc >>= 6; # 406| length = MBAddrIncrTabB1_1[cc].length; # 407|-> cc1 = GetBits(length); # 408| sliceHdr.macroblockAddressIncrement = macroblock_address_increment + MBAddrIncrTabB1_1[cc].value; # 409| return; Error: CLANG_WARNING: intel-mediasdk-23.2.2-build/MediaSDK-intel-mediasdk-23.2.2/_studio/shared/umc/codec/vc1_common/src/umc_vc1_spl_frame_constr.cpp:275:18: warning[deadcode.DeadStores]: Value stored to 'ptr' during its initialization is never read # 273| uint32_t frameBufSize = (uint32_t)Info.out->GetBufferSize(); # 274| # 275|-> uint8_t* ptr = currFramePos; # 276| uint32_t zeroNum = 0; # 277| int32_t size = 0; Error: CLANG_WARNING: intel-mediasdk-23.2.2-build/MediaSDK-intel-mediasdk-23.2.2/_studio/shared/umc/codec/vc1_common/src/umc_vc1_spl_frame_constr.cpp:400:29: warning[deadcode.DeadStores]: Value stored to 'zeroNum' is never read # 398| # 399| Info.stCodes->count++; # 400|-> zeroNum = 0; # 401| # 402| size = (uint32_t)(readPos - readBuf - readDataSize - 3); Error: CLANG_WARNING: intel-mediasdk-23.2.2-build/MediaSDK-intel-mediasdk-23.2.2/_studio/shared/umc/codec/vc1_common/src/umc_vc1_spl_frame_constr.cpp:403:29: warning[deadcode.DeadStores]: Value stored to 'readDataSize' is never read # 401| # 402| size = (uint32_t)(readPos - readBuf - readDataSize - 3); # 403|-> readDataSize = readDataSize + size; # 404| return UMC_OK; # 405| } Error: CLANG_WARNING: intel-mediasdk-23.2.2-build/MediaSDK-intel-mediasdk-23.2.2/_studio/shared/umc/codec/vc1_dec/src/umc_vc1_dec_task_store.cpp:31: included_from: Included from here. intel-mediasdk-23.2.2-build/MediaSDK-intel-mediasdk-23.2.2/_studio/shared/umc/codec/vc1_dec/include/umc_vc1_dec_frame_descr_va.h:325:48: warning[core.NullDereference]: Access to field 'm_InitPicLayer' results in a dereference of a null pointer (loaded from field 'm_pContext') # 323| m_iPicHeaderID = (MemID)-1; # 324| } # 325|-> m_pContext->m_InitPicLayer = NULL; # 326| # 327| if (m_iBitplaneID != (MemID)-1) Error: COMPILER_WARNING (CWE-697): intel-mediasdk-23.2.2-build/MediaSDK-intel-mediasdk-23.2.2/_studio/shared/umc/codec/vc1_dec/include/umc_vc1_dec_frame_descr_va.h:1216:84: warning[-Waddress]: comparing the result of pointer addition ‘(p_CurOriginalOffsets + 4)’ and NULL # 1216 | if (*(p_CurOffsets+1) && p_CurOriginalOffsets && (p_CurOriginalOffsets + 1)) # | ~~~~~~~~~~~~~~~~~~~~~~^~~~ # 1214| Offset = PicHeaderSize; # 1215| # 1216|-> if (*(p_CurOffsets+1) && p_CurOriginalOffsets && (p_CurOriginalOffsets + 1)) # 1217| SliceSize = *(p_CurOriginalOffsets+1) - *p_CurOriginalOffsets - Offset; # 1218| else Error: CLANG_WARNING: intel-mediasdk-23.2.2-build/MediaSDK-intel-mediasdk-23.2.2/_studio/shared/umc/codec/vc1_dec/src/umc_vc1_dec_bitplane.cpp:178:18: warning[deadcode.DeadStores]: Value stored to 'currRowTails' during its initialization is never read # 176| int32_t sizeW = width/2; # 177| int32_t sizeH = height/3; # 178|-> uint8_t *currRowTails = pBitplane->m_databits; # 179| # 180| for(i = 0; i < sizeH; i++) Error: CLANG_WARNING: intel-mediasdk-23.2.2-build/MediaSDK-intel-mediasdk-23.2.2/_studio/shared/umc/codec/vc1_dec/src/umc_vc1_dec_bitplane.cpp:220:18: warning[deadcode.DeadStores]: Value stored to 'currRowTails' during its initialization is never read # 218| int32_t sizeW = width/3; # 219| int32_t sizeH = height/2; # 220|-> uint8_t *currRowTails = pBitplane->m_databits; # 221| # 222| for(i = 0; i < sizeH; i++) Error: CLANG_WARNING: intel-mediasdk-23.2.2-build/MediaSDK-intel-mediasdk-23.2.2/_studio/shared/umc/codec/vc1_dec/src/umc_vc1_dec_bitplane.cpp:234:17: warning[deadcode.DeadStores]: Value stored to 'ret' is never read # 232| for(j = 0; j < sizeW; j++) # 233| { # 234|-> ret = DecodeHuffmanOne( # 235| &pContext->m_bitstream.pBitstream, # 236| &pContext->m_bitstream.bitOffset, Error: CLANG_WARNING: intel-mediasdk-23.2.2-build/MediaSDK-intel-mediasdk-23.2.2/_studio/shared/umc/codec/vc1_dec/src/umc_vc1_dec_seq.cpp:436:9: warning[deadcode.DeadStores]: Value stored to 'ENR' is never read # 434| if (FCode > 6) # 435| { # 436|-> ENR = 0; # 437| EDR = 0; # 438| frate = (double)30; Error: CLANG_WARNING: intel-mediasdk-23.2.2-build/MediaSDK-intel-mediasdk-23.2.2/_studio/shared/umc/codec/vc1_dec/src/umc_vc1_dec_seq.cpp:437:9: warning[deadcode.DeadStores]: Value stored to 'EDR' is never read # 435| { # 436| ENR = 0; # 437|-> EDR = 0; # 438| frate = (double)30; # 439| return frate; Error: CLANG_WARNING: intel-mediasdk-23.2.2-build/MediaSDK-intel-mediasdk-23.2.2/_studio/shared/umc/codec/vc1_dec/src/umc_vc1_huffman.cpp:128:30: warning[unix.Malloc]: Use of memory allocated with size zero # 126| } # 127| /* put word in array */ # 128|-> Code[nWord].code = *src++; # 129| Code[nWord++].Nc = CodeLength; # 130| src += rl == 0 ? 1 : 2; Error: CLANG_WARNING: intel-mediasdk-23.2.2-build/MediaSDK-intel-mediasdk-23.2.2/_studio/shared/umc/codec/vc1_dec/src/umc_vc1_huffman.cpp:200:41: warning[core.UndefinedBinaryOperatorResult]: The left operand of '!=' is a garbage value # 198| code = (pSrcTable[k] >> shift) & mask; # 199| # 200|-> if (table[code + 1] != (long)((VLC_FORBIDDEN << 8) | 1)) # 201| { # 202| if (((table[code + 1] & 0xff) == 0x80) && (rl == 1 || (table[code + 1] & 0xff00))) Error: CLANG_WARNING: intel-mediasdk-23.2.2-build/MediaSDK-intel-mediasdk-23.2.2/_studio/shared/umc/codec/vc1_dec/src/umc_vc1_huffman.cpp:200:41: warning[core.UndefinedBinaryOperatorResult]: The left operand of '!=' is a garbage value due to array index out of bounds # 198| code = (pSrcTable[k] >> shift) & mask; # 199| # 200|-> if (table[code + 1] != (long)((VLC_FORBIDDEN << 8) | 1)) # 201| { # 202| if (((table[code + 1] & 0xff) == 0x80) && (rl == 1 || (table[code + 1] & 0xff00))) Error: CLANG_WARNING: intel-mediasdk-23.2.2-build/MediaSDK-intel-mediasdk-23.2.2/_studio/shared/umc/codec/vc1_dec/src/umc_vc1_video_decoder.cpp:185:13: warning[deadcode.DeadStores]: Value stored to 'umcRes' is never read # 183| if (VC1_PROFILE_ADVANCED == m_pContext->m_seqLayerHeader.PROFILE) # 184| { # 185|-> umcRes = GetStartCodes((uint8_t*)data->GetDataPointer(), # 186| (uint32_t)data->GetDataSize(), # 187| m_frameData, Error: CLANG_WARNING: intel-mediasdk-23.2.2-build/MediaSDK-intel-mediasdk-23.2.2/_studio/shared/umc/codec/vc1_dec/src/umc_vc1_video_decoder.cpp:554:9: warning[deadcode.DeadStores]: Value stored to 'umcRes' is never read # 552| memset(m_frameData->GetExData()->offsets, 0,START_CODE_NUMBER*sizeof(int32_t)); # 553| memset(m_frameData->GetExData()->values, 0,START_CODE_NUMBER*sizeof(int32_t)); # 554|-> umcRes = GetStartCodes((uint8_t*)m_pCurrentIn->GetDataPointer(), # 555| (uint32_t)m_pCurrentIn->GetDataSize(), # 556| m_frameData, Error: CLANG_WARNING: intel-mediasdk-23.2.2-build/MediaSDK-intel-mediasdk-23.2.2/_studio/shared/umc/codec/vc1_dec/src/umc_vc1_video_decoder.cpp:560:33: warning[core.uninitialized.Assign]: Assigned value is garbage or undefined # 558| # 559| SwapData((uint8_t*)m_frameData->GetDataPointer(), (uint32_t)m_frameData->GetDataSize()); # 560|-> m_pContext->m_FrameSize = readSize; # 561| umcRes = StartCodesProcessing((uint8_t*)m_frameData->GetDataPointer(), # 562| m_frameData->GetExData()->offsets, Error: CLANG_WARNING: intel-mediasdk-23.2.2-build/MediaSDK-intel-mediasdk-23.2.2/_studio/shared/umc/codec/vc1_dec/src/umc_vc1_video_decoder.cpp:612:13: warning[deadcode.DeadStores]: Value stored to 'umcRes' is never read # 610| memset(m_frameData->GetExData()->offsets, 0,START_CODE_NUMBER*sizeof(int32_t)); # 611| memset(m_frameData->GetExData()->values, 0,START_CODE_NUMBER*sizeof(int32_t)); # 612|-> umcRes = GetStartCodes((uint8_t*)m_pCurrentIn->GetDataPointer(), # 613| (uint32_t)m_pCurrentIn->GetDataSize(), # 614| m_frameData, Error: CLANG_WARNING: intel-mediasdk-23.2.2-build/MediaSDK-intel-mediasdk-23.2.2/_studio/shared/umc/codec/vc1_dec/src/umc_vc1_video_decoder.cpp:617:37: warning[core.uninitialized.Assign]: Assigned value is garbage or undefined # 615| &readSize); // parse and copy to self buffer # 616| # 617|-> m_pContext->m_FrameSize = readSize; # 618| SwapData((uint8_t*)m_frameData->GetDataPointer(), (uint32_t)m_frameData->GetDataSize()); # 619| umcRes = StartCodesProcessing((uint8_t*)m_frameData->GetDataPointer(), Error: CLANG_WARNING: intel-mediasdk-23.2.2-build/MediaSDK-intel-mediasdk-23.2.2/_studio/shared/umc/codec/vc1_dec/src/umc_vc1_video_decoder.cpp:1027:21: warning[deadcode.DeadStores]: Value stored to 'zeroNum' is never read # 1025| b = a & 0x00FFFFFF; # 1026| # 1027|-> zeroNum = 0; # 1028| stCodes->count++; # 1029| } Error: CLANG_WARNING: intel-mediasdk-23.2.2-build/MediaSDK-intel-mediasdk-23.2.2/_studio/shared/umc/codec/vc1_dec/src/umc_vc1_video_decoder.cpp:1100:25: warning[deadcode.DeadStores]: Value stored to 'zeroNum' is never read # 1098| # 1099| stCodes->count++; # 1100|-> zeroNum = 0; # 1101| FrameNum++; # 1102| } Error: CLANG_WARNING: intel-mediasdk-23.2.2-build/MediaSDK-intel-mediasdk-23.2.2/_studio/shared/umc/codec/vc1_dec/src/umc_vc1_video_decoder.cpp:1117:21: warning[deadcode.DeadStores]: Value stored to 'zeroNum' is never read # 1115| frameSize = frameSize + size; # 1116| currFramePos = currFramePos + size; # 1117|-> zeroNum = 0; # 1118| # 1119| readPos++; Error: CLANG_WARNING: intel-mediasdk-23.2.2-build/MediaSDK-intel-mediasdk-23.2.2/_studio/shared/umc/codec/vc1_dec/src/umc_vc1_video_decoder_hw.cpp:348:13: warning[deadcode.DeadStores]: Value stored to 'readDataSize' is never read # 346| //end of stream # 347| size = (uint32_t)(readPos - readBuf - readDataSize); # 348|-> readDataSize = readDataSize + size; # 349| return; # 350| } Error: COMPILER_WARNING: intel-mediasdk-23.2.2-build/MediaSDK-intel-mediasdk-23.2.2/_studio/shared/umc/core/umc/src/umc_frame_data.cpp:39:8: warning[-Wodr]: type ‘struct ColorFormatInfo’ violates the C++ One Definition Rule # 39 | struct ColorFormatInfo # | ^ intel-mediasdk-23.2.2-build/MediaSDK-intel-mediasdk-23.2.2/_studio/shared/umc/core/umc/src/umc_video_data.cpp:38:8: note: a different type is defined in another translation unit # 38 | struct ColorFormatInfo # | ^ intel-mediasdk-23.2.2-build/MediaSDK-intel-mediasdk-23.2.2/_studio/shared/umc/core/umc/src/umc_frame_data.cpp:42:14: note: the first difference of corresponding definitions is field ‘m_iPlanes’ # 42 | uint32_t m_iPlanes; // Number of planes # | ^ intel-mediasdk-23.2.2-build/MediaSDK-intel-mediasdk-23.2.2/_studio/shared/umc/core/umc/src/umc_video_data.cpp:41:13: note: a field of same name but different type is defined in another translation unit # 41 | int32_t m_iPlanes; // Number of planes # | ^ intel-mediasdk-23.2.2-build/MediaSDK-intel-mediasdk-23.2.2/_studio/shared/umc/core/umc/src/umc_frame_data.cpp:39:8: note: type ‘uint32_t’ should match type ‘int32_t’ # 39 | struct ColorFormatInfo # | ^ # 37| # 38| // Color format description structure # 39|-> struct ColorFormatInfo # 40| { # 41| ColorFormat m_cFormat; Error: COMPILER_WARNING: intel-mediasdk-23.2.2-build/MediaSDK-intel-mediasdk-23.2.2/_studio/shared/umc/core/umc/src/umc_frame_data.cpp:45:12: warning[-Wodr]: type ‘struct <anon>’ violates the C++ One Definition Rule # 45 | struct { # | ^ intel-mediasdk-23.2.2-build/MediaSDK-intel-mediasdk-23.2.2/_studio/shared/umc/core/umc/src/umc_video_data.cpp:44:12: note: a different type is defined in another translation unit # 44 | struct { # | ^ intel-mediasdk-23.2.2-build/MediaSDK-intel-mediasdk-23.2.2/_studio/shared/umc/core/umc/src/umc_frame_data.cpp:46:17: note: the first difference of corresponding definitions is field ‘m_iWidthScale’ # 46 | int32_t m_iWidthScale; // Horizontal downsampling factor # | ^ intel-mediasdk-23.2.2-build/MediaSDK-intel-mediasdk-23.2.2/_studio/shared/umc/core/umc/src/umc_video_data.cpp:45:17: note: a field with different name is defined in another translation unit # 45 | int32_t m_iWidthDiv; // Horizontal downsampling factor # | ^ # 43| int32_t m_iMinBitDepth; // Minimum bitdepth # 44| # 45|-> struct { # 46| int32_t m_iWidthScale; // Horizontal downsampling factor # 47| int32_t m_iHeightScale; // Vertical downsampling factor Error: CPPCHECK_WARNING: intel-mediasdk-23.2.2-build/MediaSDK-intel-mediasdk-23.2.2/_studio/shared/umc/core/vm/src/vm_event_linux32.c: information[normalCheckLevelMaxBranches]: Limiting analysis of branches. Use --check-level=exhaustive to analyze all branches. Error: CLANG_WARNING: intel-mediasdk-23.2.2-build/MediaSDK-intel-mediasdk-23.2.2/_studio/shared/umc/core/vm/src/vm_event_linux32.c:362:13: warning[deadcode.DeadStores]: Value stored to 'res' during its initialization is never read # 360| if (event->state >= 0) # 361| { # 362|-> int res = pthread_cond_destroy(&event->cond); # 363| assert(!res); // we experienced undefined behavior # 364| res = pthread_mutex_destroy(&event->mutex); Error: CLANG_WARNING: intel-mediasdk-23.2.2-build/MediaSDK-intel-mediasdk-23.2.2/_studio/shared/umc/core/vm/src/vm_event_linux32.c:364:9: warning[deadcode.DeadStores]: Value stored to 'res' is never read # 362| int res = pthread_cond_destroy(&event->cond); # 363| assert(!res); // we experienced undefined behavior # 364|-> res = pthread_mutex_destroy(&event->mutex); # 365| assert(!res); // we experienced undefined behavior # 366| Error: CPPCHECK_WARNING: intel-mediasdk-23.2.2-build/MediaSDK-intel-mediasdk-23.2.2/_studio/shared/umc/core/vm/src/vm_semaphore_linux32.c: information[normalCheckLevelMaxBranches]: Limiting analysis of branches. Use --check-level=exhaustive to analyze all branches. Error: CLANG_WARNING: intel-mediasdk-23.2.2-build/MediaSDK-intel-mediasdk-23.2.2/_studio/shared/umc/core/vm/src/vm_semaphore_linux32.c:328:13: warning[deadcode.DeadStores]: Value stored to 'res' during its initialization is never read # 326| if (0 <= sem->count) # 327| { # 328|-> int res = pthread_cond_destroy(&sem->cond); # 329| assert(!res); // we experienced undefined behavior # 330| res = pthread_mutex_destroy(&sem->mutex); Error: CLANG_WARNING: intel-mediasdk-23.2.2-build/MediaSDK-intel-mediasdk-23.2.2/_studio/shared/umc/core/vm/src/vm_semaphore_linux32.c:330:9: warning[deadcode.DeadStores]: Value stored to 'res' is never read # 328| int res = pthread_cond_destroy(&sem->cond); # 329| assert(!res); // we experienced undefined behavior # 330|-> res = pthread_mutex_destroy(&sem->mutex); # 331| assert(!res); // we experienced undefined behavior # 332| Error: GCC_ANALYZER_WARNING (CWE-404): intel-mediasdk-23.2.2-build/MediaSDK-intel-mediasdk-23.2.2/_studio/shared/umc/core/vm/src/vm_strings_unix.c: scope_hint: In function ‘vm_string_vprintf’ intel-mediasdk-23.2.2-build/MediaSDK-intel-mediasdk-23.2.2/_studio/shared/umc/core/vm/src/vm_strings_unix.c:32:12: warning[-Wanalyzer-va-list-leak]: missing call to ‘va_end’ # 30| sts = vprintf(format, copy); # 31| va_end(argptr); # 32|-> return sts; # 33| } # 34| Error: CLANG_WARNING: intel-mediasdk-23.2.2-build/MediaSDK-intel-mediasdk-23.2.2/_studio/shared/umc/io/umc_va/src/umc_va_linux.cpp:467:21: warning[deadcode.DeadStores]: Value stored to 'va_profile' is never read # 465| else # 466| { # 467|-> va_profile = (VAProfile)-1; # 468| continue; # 469| } Error: GCC_ANALYZER_WARNING (CWE-401): intel-mediasdk-23.2.2-build/MediaSDK-intel-mediasdk-23.2.2/contrib/ipp/src/ippmalloc.c: scope_hint: In function ‘mfxMalloc’ intel-mediasdk-23.2.2-build/MediaSDK-intel-mediasdk-23.2.2/contrib/ipp/src/ippmalloc.c:40:16: warning[-Wanalyzer-malloc-leak]: leak of ‘ptr’ intel-mediasdk-23.2.2-build/MediaSDK-intel-mediasdk-23.2.2/contrib/ipp/src/ippmalloc.c:60:5: note: in expansion of macro ‘ALLOC_ALIGNED_AND_RET’ intel-mediasdk-23.2.2-build/MediaSDK-intel-mediasdk-23.2.2/contrib/ipp/src/ownj.h:25: included_from: Included from here. intel-mediasdk-23.2.2-build/MediaSDK-intel-mediasdk-23.2.2/contrib/ipp/src/precomp.h:25: included_from: Included from here. intel-mediasdk-23.2.2-build/MediaSDK-intel-mediasdk-23.2.2/contrib/ipp/src/ippmalloc.c:21: included_from: Included from here. intel-mediasdk-23.2.2-build/MediaSDK-intel-mediasdk-23.2.2/contrib/ipp/include/owndefs.h:52:72: note: in definition of macro ‘IPPFUN’ intel-mediasdk-23.2.2-build/MediaSDK-intel-mediasdk-23.2.2/contrib/ipp/src/ippmalloc.c:60:5: note: in expansion of macro ‘ALLOC_ALIGNED_AND_RET’ intel-mediasdk-23.2.2-build/MediaSDK-intel-mediasdk-23.2.2/contrib/ipp/src/ippmalloc.c:60:5: note: in expansion of macro ‘ALLOC_ALIGNED_AND_RET’ intel-mediasdk-23.2.2-build/MediaSDK-intel-mediasdk-23.2.2/contrib/ipp/src/ippmalloc.c:60:5: note: in expansion of macro ‘ALLOC_ALIGNED_AND_RET’ intel-mediasdk-23.2.2-build/MediaSDK-intel-mediasdk-23.2.2/contrib/ipp/src/ippmalloc.c:60:5: note: in expansion of macro ‘ALLOC_ALIGNED_AND_RET’ intel-mediasdk-23.2.2-build/MediaSDK-intel-mediasdk-23.2.2/contrib/ipp/src/ippmalloc.c:60:5: note: in expansion of macro ‘ALLOC_ALIGNED_AND_RET’ intel-mediasdk-23.2.2-build/MediaSDK-intel-mediasdk-23.2.2/contrib/ipp/src/ippmalloc.c:60:5: note: in expansion of macro ‘ALLOC_ALIGNED_AND_RET’ intel-mediasdk-23.2.2-build/MediaSDK-intel-mediasdk-23.2.2/contrib/ipp/src/ippmalloc.c: scope_hint: In function ‘mfxMalloc’ intel-mediasdk-23.2.2-build/MediaSDK-intel-mediasdk-23.2.2/contrib/ipp/src/ippmalloc.c:60:5: note: in expansion of macro ‘ALLOC_ALIGNED_AND_RET’ # 38| void **ap = (void**)( (IPP_UINT_PTR(ptr) + IPP_MALLOC_ALIGNED_BYTES + \ # 39| sizeof(void*) - 1 ) & ALIGNED_MASK ); \ # 40|-> ap[-1] = (void*)ptr; \ # 41| return (retType)ap; \ # 42| } \ Error: COMPILER_WARNING (CWE-704): intel-mediasdk-23.2.2-build/MediaSDK-intel-mediasdk-23.2.2/contrib/ipp/src/pccyuvms.c:582: warning[-Wlto-type-mismatch]: type of ‘mfxalYCbCr422ToYCbCr422_8u_C2P3R’ does not match original declaration # 582 | extern void mfxalYCbCr422ToYCbCr422_8u_C2P3R( const Ipp8u* pSrc, int srcStep, Ipp8u* pDst[3], intel-mediasdk-23.2.2-build/MediaSDK-intel-mediasdk-23.2.2/contrib/ipp/src/pccyuvmsw7.c:223: note: type mismatch in parameter 6 # 223 | extern void mfxalYCbCr422ToYCbCr422_8u_C2P3R( const Ipp8u* pSrc, int srcStep, Ipp8u* pDst[3], intel-mediasdk-23.2.2-build/MediaSDK-intel-mediasdk-23.2.2/contrib/ipp/src/pccyuvmsw7.c:223: note: type ‘void’ should match type ‘int’ intel-mediasdk-23.2.2-build/MediaSDK-intel-mediasdk-23.2.2/contrib/ipp/src/pccyuvmsw7.c:223: note: ‘mfxalYCbCr422ToYCbCr422_8u_C2P3R’ was previously declared here # 580| extern void mfxownYCbCr422ToYCbCr422_8u_C2P3R( const Ipp8u* pSrc, int srcStep, Ipp8u* pDst[3], # 581| int dstStep[3], IppiSize roiSize,int ); # 582|-> extern void mfxalYCbCr422ToYCbCr422_8u_C2P3R( const Ipp8u* pSrc, int srcStep, Ipp8u* pDst[3], # 583| int dstStep[3], IppiSize roiSize,int ); # 584| extern void mfxownYCbCr422ToYCbCr420_8u_C2P3R( const Ipp8u* pSrc, int srcStep, Ipp8u* pDst[3], Error: CLANG_WARNING: intel-mediasdk-23.2.2-build/MediaSDK-intel-mediasdk-23.2.2/contrib/ipp/src/pccyuvmsw7.c:564:7: warning[deadcode.DeadStores]: Value stored to 't0' is never read # 562| t1 = _mm_packus_epi16( t1, t1); //U # 563| t0 = _mm_srli_epi16( t0 , 8 ); # 564|-> t0 = _mm_packus_epi16( t0, t1); //V # 565| _mm_storel_epi64( (__m128i*) (dsty+dstS), t4); # 566| src += 16;dsty += 8;dstu += 4;dstv += 4; Error: CLANG_WARNING: intel-mediasdk-23.2.2-build/MediaSDK-intel-mediasdk-23.2.2/contrib/ipp/src/pjdechuff.c:355:10: warning[core.BitwiseShift]: Right operand is negative in right shift # 353| } # 354| # 355|-> code = mfxownpj_get_bits(nMinBits,pDecHuffState); # 356| # 357| /* !dudnik: 18.05.2006 limit search for huffman code to 16 bits */ Error: CLANG_WARNING: intel-mediasdk-23.2.2-build/MediaSDK-intel-mediasdk-23.2.2/contrib/ipp/src/pjdechuff.c:383:13: warning[core.BitwiseShift]: Right operand is negative in right shift # 381| } # 382| # 383|-> code |= mfxownpj_get_bits(1,pDecHuffState); # 384| } # 385| Error: CPPCHECK_WARNING: intel-mediasdk-23.2.2-build/MediaSDK-intel-mediasdk-23.2.2/tools/tracer/config/config.cpp: information[normalCheckLevelMaxBranches]: Limiting analysis of branches. Use --check-level=exhaustive to analyze all branches. Error: CPPCHECK_WARNING: intel-mediasdk-23.2.2-build/MediaSDK-intel-mediasdk-23.2.2/tools/tracer/tools/configure/config_manager.cpp: information[normalCheckLevelMaxBranches]: Limiting analysis of branches. Use --check-level=exhaustive to analyze all branches. Error: CLANG_WARNING: intel-mediasdk-23.2.2-build/MediaSDK-intel-mediasdk-23.2.2/tools/tracer/tools/configure/config_manager.cpp:33:9: warning[cplusplus.NewDelete]: Attempt to free released memory # 31| { # 32| if(manager) # 33|-> delete manager; # 34| } # 35| Error: CPPCHECK_WARNING: intel-mediasdk-23.2.2-build/MediaSDK-intel-mediasdk-23.2.2/tools/tracer/tools/configure/main.cpp: information[normalCheckLevelMaxBranches]: Limiting analysis of branches. Use --check-level=exhaustive to analyze all branches. Error: CLANG_WARNING: intel-mediasdk-23.2.2-build/MediaSDK-intel-mediasdk-23.2.2/tools/tracer/tools/configure/main.cpp:39:30: warning[cplusplus.StringChecker]: The parameter must not be null # 37| { # 38| try { # 39|-> string config_path = HOME + string("/.mfxtracer"); # 40| const string help = # 41| "\n" Error: CLANG_WARNING: intel-mediasdk-23.2.2-build/MediaSDK-intel-mediasdk-23.2.2/tutorials/common/common_utils.cpp:579:15: warning[deadcode.DeadStores]: Although the value stored to 'impl' is used in the enclosing expression, the value is never actually read from 'impl' # 577| } # 578| } # 579|-> else if ((impl |= MFX_IMPL_HARDWARE)) # 580| { # 581| switch (type) Error: CLANG_WARNING: intel-mediasdk-23.2.2-build/MediaSDK-intel-mediasdk-23.2.2/tutorials/common/common_vaapi.cpp:68:9: warning[deadcode.DeadStores]: Value stored to 'mfxRes' is never read # 66| break; # 67| case VA_STATUS_ERROR_INVALID_PARAMETER: # 68|-> mfxRes = MFX_ERR_INVALID_VIDEO_PARAM; # 69| default: # 70| mfxRes = MFX_ERR_UNKNOWN; Error: CLANG_WARNING: intel-mediasdk-23.2.2-build/MediaSDK-intel-mediasdk-23.2.2/tutorials/simple_2_decode_hevc10/src/simple_decode_hevc10.cpp:112:13: warning[deadcode.DeadStores]: Value stored to 'success' is never read # 110| if (sts < MFX_ERR_NONE) { # 111| printf("Loading HEVC plugin failed\n"); # 112|-> success = false; # 113| } # 114| } Error: CLANG_WARNING: intel-mediasdk-23.2.2-build/MediaSDK-intel-mediasdk-23.2.2/tutorials/simple_2_decode_hevc10/src/simple_decode_hevc10.cpp:135:6: warning[deadcode.DeadStores]: Value stored to 'sts' is never read # 133| # 134| // Validate video decode parameters (optional) # 135|-> sts = mfxDEC.Query(&mfxVideoParams, &mfxVideoParams); # 136| # 137| // Query number of required surfaces for decoder Error: CLANG_WARNING: intel-mediasdk-23.2.2-build/MediaSDK-intel-mediasdk-23.2.2/tutorials/simple_3_encode_hevc10/src/simple_encode_hevc10.cpp:157:13: warning[deadcode.DeadStores]: Value stored to 'success' is never read # 155| if (sts < MFX_ERR_NONE) { # 156| printf("Loading HEVC plugin failed\n"); # 157|-> success = false; # 158| } # 159| } Error: CLANG_WARNING: intel-mediasdk-23.2.2-build/MediaSDK-intel-mediasdk-23.2.2/tutorials/simple_3_encode_vmem_async/src/simple_encode_vmem_async.cpp:220:51: warning[core.DivideZero]: Division by zero # 218| # 219| pTasks[nFirstSyncTask].syncp = NULL; # 220|-> nFirstSyncTask = (nFirstSyncTask + 1) % taskPoolSize; # 221| # 222| ++nFrame; Error: CLANG_WARNING: intel-mediasdk-23.2.2-build/MediaSDK-intel-mediasdk-23.2.2/tutorials/simple_3_encode_vmem_async/src/simple_encode_vmem_async.cpp:279:51: warning[core.DivideZero]: Division by zero # 277| # 278| pTasks[nFirstSyncTask].syncp = NULL; # 279|-> nFirstSyncTask = (nFirstSyncTask + 1) % taskPoolSize; # 280| # 281| ++nFrame; Error: CLANG_WARNING: intel-mediasdk-23.2.2-build/MediaSDK-intel-mediasdk-23.2.2/tutorials/simple_3_encode_vmem_async/src/simple_encode_vmem_async.cpp:319:47: warning[core.DivideZero]: Division by zero # 317| # 318| pTasks[nFirstSyncTask].syncp = NULL; # 319|-> nFirstSyncTask = (nFirstSyncTask + 1) % taskPoolSize; # 320| # 321| ++nFrame; Error: CLANG_WARNING: intel-mediasdk-23.2.2-build/MediaSDK-intel-mediasdk-23.2.2/tutorials/simple_6_transcode_opaque_lowlatency/src/simple_transcode_opaque_lowlat.cpp:109:10: warning[deadcode.DeadStores]: Although the value stored to 'nNalu' is used in the enclosing expression, the value is never actually read from 'nNalu' # 107| int pos2ndNaluStart = 0; # 108| //check nalu in input bs, it always=1 if decoder didnt take a frame # 109|-> if ((nNalu = FindSlice(pBS, pos2ndNaluStart)) < 1) { # 110| //copy nalu from internal buffer # 111| if ((nNalu = FindSlice(&lastBs, pos2ndNaluStart)) < 2) { Error: CLANG_WARNING: intel-mediasdk-23.2.2-build/MediaSDK-intel-mediasdk-23.2.2/tutorials/simple_7_codec/simple_codec.cpp:468:41: warning[deadcode.DeadStores]: Value stored to 'sts' is never read # 466| if (sts < MFX_ERR_NONE) printf("The decoder wasn't closed successfully.\n"); # 467| # 468|-> if (dec_tasks[idx].load_plugin) sts = MFXVideoUSER_UnLoad(session, (const mfxPluginUID *)&codecUID); # 469| # 470| if (success) printf("The device supports %s\n", msg); Error: CLANG_WARNING: intel-mediasdk-23.2.2-build/MediaSDK-intel-mediasdk-23.2.2/tutorials/simple_7_codec/simple_codec.cpp:530:41: warning[deadcode.DeadStores]: Value stored to 'sts' is never read # 528| if (sts < MFX_ERR_NONE) printf("The encoder wasn't closed successfully.\n"); # 529| # 530|-> if (enc_tasks[idx].load_plugin) sts = MFXVideoUSER_UnLoad(session, (const mfxPluginUID *)&codecUID); # 531| # 532| if (success) printf("The device supports %s\n", msg);