Comments (4)
Can you post sample code to use openh264?
from openh264.
Just using hello world application that link with the api definitions:
test.cpp:
#include <stdio.h>
#include "codec/api/svc/codec_api.h"
int main(int argc, char *argv[])
{
printf("Hello world!");
return 0;
}
If I compile it with -Wnon-virtual-dtor, I get a warning, and if I include -Werror, it fails:
gcc -Wnon-virtual-dtor -Werror -o test.o test.cpp
the result is:
./codec/api/svc/codec_api.h:54:7: error: 'ISVCEncoder' has virtual functions but non-virtual destructor [-Werror,-Wnon-virtual-dtor]
class ISVCEncoder {
^
./codec/api/svc/codec_api.h:95:7: error: 'ISVCDecoder' has virtual functions but non-virtual destructor [-Werror,-Wnon-virtual-dtor]
class ISVCDecoder {
^
2 errors generated.
When trying to use OpehH264 together with WebRTC, the Android native code builds with these two options, so it fails. I think that fixing this in the OpenH264 code is the right place to do it.
from openh264.
This issue is fixed in pull request #725.
from openh264.
Thanks
from openh264.
Related Issues (20)
- Latest update broke video and made it glitchy HOT 15
- aarch64 build does not support PAC/BTI features
- https://www.instagram.com
- B-frame encoding
- Issue 66056: openh264:decoder_fuzzer: Integer-overflow in WelsDec::ParseSliceHeaderSyntaxs HOT 4
- Issue 66073: openh264:decoder_fuzzer: Timeout in decoder_fuzzer HOT 1
- [meson] ld.lld: error: relocation R_386_32 cannot be used against local symbol; recompile with -fPIC
- ciscobinary.openh264.org using invalid certificate HOT 4
- ciscobinary.openh264.org - Unable to connect HOT 1
- Could you help to understand for which purposes double declaration or may be it should be for cpp?
- Error replay videos from Kaltura in Firefox HOT 5
- data broken after encoded into h264 stream
- Cisco
- Buda
- RP
- iOS h264 enc/dec HOT 1
- SSL ceritficate for download openh264 binaries
- Workaround to Increase Compressed Frame Size Input to Decoder HOT 1
- How to adjust the parameters to display colors correctly?
- Should this be a fallthrough?
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.