<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=gb2312">
<style type="text/css" style="display:none;"><!-- P {margin-top:0;margin-bottom:0;} --></style>
</head>
<body dir="ltr">
<div id="divtagdefaultwrapper" style="font-size:12pt;color:#000000;background-color:#FFFFFF;font-family:Calibri,Arial,Helvetica,sans-serif;">
<p>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.</p>
<p><br>
</p>
<p>It now looks like if I create it (by explicitly calling "new ..."), and if there is another struct in <span style="font-family: Calibri, Arial, Helvetica, sans-serif, "Apple Color Emoji", "Segoe UI Emoji", NotoColorEmoji, "Segoe UI Symbol", "Android Emoji", EmojiSymbols; font-size: 16px;">ffmpeg
 filter which is </span>allocated by av_malloc after I create my object, there will be a memory issue. But if I create alone, or allocate the <span style="font-family: Calibri, Arial, Helvetica, sans-serif, "Apple Color Emoji", "Segoe UI Emoji", NotoColorEmoji, "Segoe UI Symbol", "Android Emoji", EmojiSymbols; font-size: 16px;">struct
 alone, there is no memory issue. So, both of them cannot be used at the same time.</span></p>
<p><span style="font-family: Calibri, Arial, Helvetica, sans-serif, "Apple Color Emoji", "Segoe UI Emoji", NotoColorEmoji, "Segoe UI Symbol", "Android Emoji", EmojiSymbols; font-size: 16px;"><br>
</span></p>
<p>Thanks.</p>
<p><br>
</p>
<p>Rich</p>
<p><br>
</p>
<div id="Signature">
<p><br>
</p>
</div>
<br>
<div style="color: rgb(0, 0, 0);">
<div>
<hr tabindex="-1" style="display:inline-block; width:98%">
<div id="x_divRplyFwdMsg" dir="ltr"><font face="Calibri, sans-serif" color="#000000" style="font-size:11pt"><b>发件人:</b> Libav-user <libav-user-bounces@ffmpeg.org> 代表 Carl Eugen Hoyos <ceffmpeg@gmail.com><br>
<b>发送时间:</b> 2016年9月14日 10:14<br>
<b>收件人:</b> This list is about using libavcodec, libavformat, libavutil, libavdevice and libavfilter.<br>
<b>主题:</b> Re: [Libav-user] Errors when creating a C++ object (with a C API) in FFmpeg filter</font>
<div> </div>
</div>
</div>
<font size="2"><span style="font-size:10pt;">
<div class="PlainText">2016-09-14 5:30 GMT+02:00 R n <flynewdream@hotmail.com>:<br>
<br>
> I wrote a C++ class using openCV as well as a C wrapper/API. I am now using<br>
> it in FFmpeg filter. In the filter,<br>
<br>
Why didn't you use the existing opencv filter in FFmpeg?<br>
<br>
Carl Eugen<br>
_______________________________________________<br>
Libav-user mailing list<br>
Libav-user@ffmpeg.org<br>
<a href="http://ffmpeg.org/mailman/listinfo/libav-user" id="LPlnk62701">http://ffmpeg.org/mailman/listinfo/libav-user</a>
<div id="LPBorder_GT_14738665335700.584047053221252" style="margin-bottom: 20px; overflow: auto; width: 100%; text-indent: 0px;">
<table id="LPContainer_14738665335670.25758808962967183" cellspacing="0" style="width: 90%; position: relative; overflow: auto; padding-top: 20px; padding-bottom: 20px; margin-top: 20px; border-top-width: 1px; border-top-style: dotted; border-top-color: rgb(200, 200, 200); border-bottom-width: 1px; border-bottom-style: dotted; border-bottom-color: rgb(200, 200, 200); background-color: rgb(255, 255, 255);">
<tbody>
<tr valign="top" style="border-spacing: 0px;">
<td id="TextCell_14738665335680.86364684739343" colspan="2" style="vertical-align: top; position: relative; padding: 0px; display: table-cell;">
<div id="LPRemovePreviewContainer_14738665335680.23906250492007786"></div>
<div id="LPTitle_14738665335690.6937365139721501" style="top: 0px; color: rgb(0, 120, 215); font-weight: normal; font-size: 21px; font-family: "Microsoft YaHei UI", "Microsoft YaHei", 微软雅黑, SimSun, 宋体, sans-serif; line-height: 21px;">
<a id="LPUrlAnchor_14738665335690.177741849591476" href="http://ffmpeg.org/mailman/listinfo/libav-user" target="_blank" style="text-decoration: none;">Libav-user Info Page - FFmpeg</a></div>
<div id="LPMetadata_14738665335690.09476830827865124" style="margin: 10px 0px 16px; color: rgb(102, 102, 102); font-weight: normal; font-family: "Microsoft YaHei UI", "Microsoft YaHei", 微软雅黑, SimSun, 宋体, sans-serif; font-size: 14px; line-height: 14px;">
ffmpeg.org</div>
<div id="LPDescription_14738665335690.9036789740562334" style="display: block; color: rgb(102, 102, 102); font-weight: normal; font-family: "Microsoft YaHei UI", "Microsoft YaHei", 微软雅黑, SimSun, 宋体, sans-serif; font-size: 14px; line-height: 20px; max-height: 100px; overflow: hidden;">
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 ...</div>
</td>
</tr>
</tbody>
</table>
</div>
<br>
<br>
</div>
</span></font></div>
</div>
</body>
</html>