Stuff
public text v1 · immutableint main()
{
const char *filename = "toto.flv";
AVInputFormat *fmt;
AVFormatContext *oc;
ByteIOContext pb;
av_register_all();
// fmt = guess_format(NULL, filename, NULL);
// oc->oformat = fmt;
snprintf(oc->filename, sizeof(oc->filename), "%s", filename);
av_open_input_file(&oc, filename , fmt, 0, NULL);
printf("Duration: %d\n",oc->duration);
return 0;
}