2009/1/2 Franco Amato <[email protected]> > > > 2009/1/2 Michael Tison <[email protected]> > >> On Fri, Jan 2, 2009 at 11:49 AM, Franco Amato <[email protected]> >> wrote: >> > 2009/1/1 Michael Tison <[email protected]> >> > >> >> On Wed, Dec 31, 2008 at 9:04 AM, Franco Amato <[email protected]> >> >> wrote: >> >> >> and that m_audioStream->codec->codec != NULL. >> >> > >> >> > Yes it's null...very strange >> >> >> >> Ensure that avcodec_open(...) was called before avcodec_close(...) and >> >> that the return value from avcodec_open(...) > 0. >> > >> > >> > Yes the avcodec_open was called with a return value = 0 >> > so I don't know which can be the problem :-( >> > >> >> Actually it was suppose to be avcodec_open(...) >= 0 (a return value >> of 0 is okay). > > Hi valgrind discovered that this simply check give to me a seg fault void MovieRecorderBase::CloseAudioEncoder() { if(m_audioStream->codec->codec) //here I get seg fault...is it a nightmare? avcodec_close(m_audioStream->codec);
...more code... } I'm really confused and I don't know how to debug with gdb as I don't have an active project written with visual studio but a list of files edited with emacs and compiled with g++ > > Yes it'so. > >> >> >> At this point it seems you just need to go over it with a debugger and >> watch the stream's codec context. > > > Working under Linux and never used gdb...:-( > Meanwhile thanx > >> >> >> Michael > > Franco > Franco > > >> _______________________________________________ >> libav-user mailing list >> [email protected] >> https://lists.mplayerhq.hu/mailman/listinfo/libav-user >> > > > > -- > Franco Amato > -- Franco Amato _______________________________________________ libav-user mailing list [email protected] https://lists.mplayerhq.hu/mailman/listinfo/libav-user
