Karthik Kailash wrote:
> I added that, and now i get a segfault! I'm using a linux build right now
> (same configuration with cross-compile stuff removed). I'm about to try
> stepping through it with gdb.
[...]
>>> int main(char argc, char** argv)
>>> {
>>>         AVFormatContext* context;
>>>         int ret;
>>>
>>>         avcodec_init();
>>>         avcodec_register_all();
>>>         av_register_all();
>>>
>>>         context = av_alloc_format_context();
>>>         ret = av_open_input_file(context, argv[1], NULL, 0, NULL);

This cannot work. The first parameter of av_open_input_file() should be 
an AVFormatContext **, so I guess you want &context, not context...
and the av_alloc_format_context() here seems unneeded.

I believe there are good tutorials about these things on the net...


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

Reply via email to