It sounds like a stack problem... Check all the calls preceding this one... Maybe there is something in your code that is causing buffer overflow... If you use function pointers check the syntax of the prototype... Check also if you have previously called a function with va_list arguments...
Francesco Pellegrino.
>>
>> >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
<<winmail.dat>>
_______________________________________________ libav-user mailing list [email protected] https://lists.mplayerhq.hu/mailman/listinfo/libav-user
