Comments (7)
We think it is safe to check null pointer for the function parameter. And in these cases, it will not impact the performance as these checks are in the very high level. if it is in the MB loop, we should avoid the check for performance.
from openh264.
I am not concerned about input parameter validation here. I would appreciate if some null pointer checks can be deleted for improved execution speed because the corresponding resource release functions should provide the desired safety check, shouldn't it?
from openh264.
null-checks are essentially free. Its a well predicted branch. Removing them won't provide a speedup. However, those checks are indeed redundant and removing them would be cleaner. @kali2, why do you need those checks?
from openh264.
I guess that unneeded null pointer checks have got unwanted effects on run time behaviour. A source code clean-up might help here.
from openh264.
After review all the cases you mentioned, I agree with that the null pointer check before delete is redundant. Thanks for your care. But in other cases, such as function parameter check, and check after open file, I think they it is a good coding style.
from openh264.
Are you going to remove "redundant" pointer checks before delete calls?
Will the affected source code places be fixed?
from openh264.
We are focus on fixing the issue of support asm code in 64-bit mode. It is appreciated if you would like to do it. Thanks!
from openh264.
Related Issues (20)
- Emscripten build and sys/sysctl.h
- Error while building library in windows
- How to build openh264 for QNX? HOT 1
- FHD(1920x1080) YUV Video Encoding HOT 1
- Checksum error for h264 codecs
- [question] Android build fails HOT 2
- When the bit rate is limited, images with similar edge colors will be blurred out HOT 1
- Fedora Silverblue Rawhide update failing HOT 2
- Higher version number of installed component than the one released on this platform HOT 1
- loogarch64 ---__lasx_xvpickve_d HOT 1
- New release soon? HOT 5
- Poor Quality in Gaming - What Parameters Should I pass
- slice_mode option does not exist; blurry content HOT 1
- Heap use after free on ISVCDecoder::DecodeFrameNoDelay HOT 1
- Cannot handle value greater than 2^23
- Unrecognized command-line options error when building for android HOT 3
- [h264 @ 0x7f802c2121c0] sps_id 1 out of range(ffplay), Warning:UpdateAccessUnit():::::Key frame lost(h264dec.exe) HOT 2
- how to use the openh264 binary
- "The gmpopenh264 plugin has crashed". Is this a known issue? HOT 5
- How can we make sps contain frame rate information?
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 openh264.