Comments (11)
What this was supposed to to ?
file /api/opensource/mfx_dispatch/src/main.cpp
:
MFX_DISP_HANDLE &pHandle = *(MFX_DISP_HANDLE *) session;
if (&pHandle=NULL)
{
DISPATCHER_LOG_ERROR((("MFXVideoUSER_Load: session=NULL\n")));
return MFX_ERR_NULL_PTR;
}
pHandle
is a c++ reference, it can't be a nullptr ...
If I understand it well, passing a null pointer to session
, will only crash the process because of the null pointer dereferencing the line before ...
Check out for session first:
if(session==nullptr){
...}
MFX_DISP_HANDLE &pHandle = *(MFX_DISP_HANDLE *) session;
from mediasdk.
g++ 7.2 is the latest version on Ubuntu 17.10 and g++7.3 is the latest version on Clear Linux OS
from mediasdk.
I think it is just a bug in verification implementation, thanks @xhaihao.
from mediasdk.
There are lots of other errors besides the above errors. It would be better not to take all warnings as errors by default because strict compilation flags are not consistent across different versions of GCC
from mediasdk.
This is nice idea. I'll add check which would relax compilation flags for GCC versions other than CI baseline.
from mediasdk.
from one side - agree it'll be easier, from another side - treating warning as error was added specifically to make developers not to create buggy code, so much better to fix such issues...
from mediasdk.
Is it possible to provide an option for developers to use strict compilation? End-user may use the default options without strict compilation flags.
from mediasdk.
gcc-6 Ubuntu 6.2.0-5ubuntu12, same error...
from mediasdk.
see #124
from mediasdk.
I still see the following error when building the latest master.
/home/xhh/graphics/ex/vaapi/MediaSDK/_studio/shared/umc/codec/mpeg2_dec/src/umc_mpeg2_dec_slice_hw.cpp: In member function βvirtual void UMC::MPEG2VideoDecoderHW::quant_matrix_extension(int)β:
/home/xhh/graphics/ex/vaapi/MediaSDK/_studio/shared/umc/codec/mpeg2_dec/src/umc_mpeg2_dec_slice_hw.cpp:561:86: error: βq_matrix[3][i]β may be used uninitialized in this function [-Werror=maybe-uninitialized]
pack_l.QmatrixData.chroma_non_intra_quantiser_matrix[i] = q_matrix[3][i];
~~~~~~~~~~~~~^
cc1plus: all warnings being treated as errors
from mediasdk.
Fixed by the commit below
commit 6c0558c
Author: Dmitry Ermilov [email protected]
Date: Thu May 10 05:39:23 2018 -0400
[mpeg2d] q_matrix zero initilizatioin
from mediasdk.
Related Issues (20)
- MFX_ERR_UNSUPPORTED HOT 1
- sample_fei usage with mbctrl / ForceToSkip
- invalid fd close cause issues when application already open the fd 0, in VA-surface transfer.
- download or install intel Media SDK fail HOT 4
- [DG1/ICL/RKL/SG1/TGL] media-driver build with option 'DENABLE_PRODUCTION_KMD' cause msdk-dispatcher couldn't load mskd-runtime
- How to share the OpenGL texture from MSDK output buffer? HOT 1
- Windows build fails under bash with clang
- Sample decode unable to play on weston10
- sample encode failed HEVC
- How to use lookahead brc in alderlake for hevc encoder
- sample decode lost frames HOT 6
- Only CQP rate control is available on Elkhart Lake HOT 4
- Identical MFXVideoVPP_Query requests return different status codes
- intermitent segfault with ffmpeg encoding h.264 on Ubuntu
- Green screen problem when combining videos using VPP
- HEVC encoder with intra refresh parameters error
- Downloading a Windows build HOT 2
- mfxlib.log file HOT 1
- how to solve sts=MFX_ERR_NOT_FOUND(-9) when use intel msdk encoder windows 10 system has intel intergrate gpu and nvidia gpu card
- sample_encode memory leak
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
π Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. πππ
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google β€οΈ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from mediasdk.