![]() |
![]() |
#1 |
Member
Join Date: Apr 2006
Posts: 5
|
![]()
with this file :
http://mediaarea.net/crash.mpc If I use libmpcdec 1.2.2, I have a crash with this code : Code:
mpc_streaminfo Info; (...) if (Info.profile_name) std::string S=Info.profile_name; I think you do not check the value of profile when you map it with a char* for the profile name. I don't know why the profile is so high.
__________________
Want to know all about your media files? http://mediainfo.sourceforge.net |
![]() |
![]() |
![]() |
#2 |
Procrastinator
Join Date: Jul 2004
Posts: 131
|
![]()
Which code are you talking about ? There's no std::string in libmpcdec.
After a quick look at the sources, libmpcdec does check invalid profile id and use "n.a." as profile_name |
![]() |
![]() |
![]() |
#3 | |
Member
Join Date: Apr 2006
Posts: 5
|
![]() Quote:
Code:
FILE *File=_wfopen(CompleteFileName.c_str(), L"rb"); if (!File) return -1; mpc_reader_file Reader; mpc_reader_setup_file_reader(&Reader, File); mpc_streaminfo Info; mpc_streaminfo_init(&Info); if (mpc_streaminfo_read(&Info, &Reader.reader)!=ERROR_CODE_OK) { fclose(File); return -1; //Not a Musepack file } if (Info.profile_name) std::string S=Info.profile_name; would you like I give you an example complete source code?
__________________
Want to know all about your media files? http://mediainfo.sourceforge.net |
|
![]() |
![]() |
![]() |
Thread Tools | Search this Thread |
Display Modes | |
|
|
![]() |
||||
Thread | Thread Starter | Forum | Replies | Last Post |
libmpcdec 1.2.5 | Lefungus | Development | 0 | 11 February 2007 07:54 pm |
libmpcdec not working when linked with mplayer since 1.2.3 | Nicholi | Development | 4 | 27 January 2007 12:44 pm |
./configure missing in libmpcdec 1.2.4 | Zenitram | Development | 6 | 10 December 2006 03:53 am |
Crash in winamp with the musepack plugin | cmamet | MPC for Windows | 15 | 05 September 2005 11:46 pm |
seeking help with XMMSplugin and libmpcdec | th0th | MPC for UNIX | 5 | 02 June 2005 07:25 pm |