2008/12/5 Pellegrino Francesco <[EMAIL PROTECTED]>

>
> >Hi to all,
> >I have a AVFormatContext * m_context; as private member of my encoder
> class
> >named MovieRecorder.
> >This piece of code give me a segmentation fault:
> >
> >    // allocate output media context
> >    assert( !m_context );
> >    m_context = av_alloc_format_context();
> >    if ( !m_context ) {
> >        LOG_ERR("MovieRecorderBase::FFmpegOpenMovie(): Cannot allocate
> >format context.");
> >        return;
> >        }
> >
> >This is done in a routine.
> >The assert already cause the termination of my program and If I comment it
> I
> >get a segmentation fault from av_alloc_format_context();
>
> What kind of architecture are you using (OS, uP)?
> Did you compiled source code from repository?
> If yes, witch compiler did you used?


I'm working under Linux Opensuse 10.2 intel core duo.
Gcc compiler. The strange behavior is that if I move the piece of code in
another member function of my class I don't get the error....
I am really confused

>
>
>
> Francesco Pellegrino.

Franco

>
>
> _______________________________________________
> libav-user mailing list
> [email protected]
> https://lists.mplayerhq.hu/mailman/listinfo/libav-user
>
>


-- 
Franco Amato
_______________________________________________
libav-user mailing list
[email protected]
https://lists.mplayerhq.hu/mailman/listinfo/libav-user

Reply via email to