Hi Luca,

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.

Karthik

On Fri, Jun 27, 2008 at 10:35 AM, Luca Abeni <[EMAIL PROTECTED]> wrote:

> Hi Karthik,
>
> Karthik Kailash wrote:
> [...]
> > 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);
> >
> >         if(ret < 0)
> >                 printf("couldn't open file\n");
> [...]
>
> Try adding av_find_stream_info(context) after av_open_input_file().
>
>
>                        Luca
> _______________________________________________
> libav-user mailing list
> [email protected]
> https://lists.mplayerhq.hu/mailman/listinfo/libav-user
>
_______________________________________________
libav-user mailing list
[email protected]
https://lists.mplayerhq.hu/mailman/listinfo/libav-user

Reply via email to