[ lame-Bugs-3526854 ] Crash when using IAMStreamConfig GetStreamCaps function
SourceForge.net <[email protected]>
| Newsgroups | gmane.comp.audio.mp3.lame |
|---|---|
| Message-ID | <[email protected]> |
Bugs item #3526854, was opened at 2012-05-15 00:25 Message generated for change (Comment added) made by maxsmi You can respond by visiting: https://sourceforge.net/tracker/?func=detail&atid=100290&aid=3526854&group_id=290 Please note that this message will contain a full copy of the comment thread, including the initial issue submission, for this request, not just the latest update. Category: Libraries Group: None Status: Open Resolution: None Priority: 5 Private: No Submitted By: https://www.google.com/accounts () Assigned to: Nobody/Anonymous (nobody) Summary: Crash when using IAMStreamConfig GetStreamCaps function Initial Comment: lame.ax When the IAMStreamConfig::GetStreamCaps() is called, the filter crashes because of the unitialized variable "m_mt" if the output pin is not connected. m_mt represents the connection mediatype of the output pin, however the pin can be not connected when GetStreamCaps() is called. ---------------------------------------------------------------------- Comment By: Maxsmi (maxsmi) Date: 2012-05-15 21:20 Message: There is no such restrictions in a documentation. Here is what the documentation says: "Filters implement the IAMStreamConfig::SetFormat method to set the audio or video format before the filter's pins are connected. If your output pin is already connected and you can provide a new type, then reconnect your pin..." The GetStreamCaps() is called before SetFormat(). That means there is no need to have a connected pin. ---------------------------------------------------------------------- Comment By: Joseph Flynn (jwflynn1) Date: 2012-05-15 16:24 Message: I am not trying to justify the crash but your methodology is incorrect. The compressor output pins need to be rendered *before* you set the compression parameters or call GetStreamCaps(). Joe Flynn ---------------------------------------------------------------------- You can respond by visiting: https://sourceforge.net/tracker/?func=detail&atid=100290&aid=3526854&group_id=290 ------------------------------------------------------------------------------ Live Security Virtual Conference Exclusive live event will cover all the ways today's security and threat landscape has changed and how IT managers can respond. Discussions will include endpoint security, mobile security and the latest in malware threats. http://www.accelacomm.com/jaw/sfrnl04242012/114/50122263/