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

Reply via email to