On Fri, 05 Dec 2008 10:05:53 -0500, Franco Amato <[EMAIL PROTECTED]>
wrote:
> This piece of code give me a segmentation fault:
>
> // allocate output media context
> assert( !m_context );
> m_context = av_alloc_format_context();
[...]
> The assert already cause the termination of my program and If I comment
> it I get a segmentation fault from av_alloc_format_context();
Actually it sounds like you call this method on a null pointer.
What is the address of m_context?
printf("%p\n",&m_context);
--
Michael Conrad
IntelliTree Solutions llc.
513-552-6362
[EMAIL PROTECTED]
_______________________________________________
libav-user mailing list
[email protected]
https://lists.mplayerhq.hu/mailman/listinfo/libav-user