I hope to build the new library in a standalone one which can be used in ffmpeg filter and can also be used independent on ffmpeg (with some wrapper). So, I let it depend on openCV only.
It now looks like if I create it (by explicitly calling "new ..."), and if there is another struct in ffmpeg filter which is allocated by av_malloc after I create my object, there will be a memory issue. But if I create alone, or allocate the struct alone, there is no memory issue. So, both of them cannot be used at the same time. Thanks. Rich ________________________________ 发件人: Libav-user <[email protected]> 代表 Carl Eugen Hoyos <[email protected]> 发送时间: 2016年9月14日 10:14 收件人: This list is about using libavcodec, libavformat, libavutil, libavdevice and libavfilter. 主题: Re: [Libav-user] Errors when creating a C++ object (with a C API) in FFmpeg filter 2016-09-14 5:30 GMT+02:00 R n <[email protected]>: > I wrote a C++ class using openCV as well as a C wrapper/API. I am now using > it in FFmpeg filter. In the filter, Why didn't you use the existing opencv filter in FFmpeg? Carl Eugen _______________________________________________ Libav-user mailing list [email protected] http://ffmpeg.org/mailman/listinfo/libav-user Libav-user Info Page - FFmpeg<http://ffmpeg.org/mailman/listinfo/libav-user> ffmpeg.org This list is about using libavcodec, libavformat, libavutil, libavdevice and libavfilter. To see the collection of prior postings to the list, visit the Libav-user ...
_______________________________________________ Libav-user mailing list [email protected] http://ffmpeg.org/mailman/listinfo/libav-user
