Hi, > > + st->duration = thp->framecnt; > > This looks very wrong. Duration is supposed to be in time_base, not frames. > This should be it nb_frames instead, no? I don't know, but when I use "st->nb_frames = thp->framecnt;" then I get no duration. Tested with this file: http://samples.mplayerhq.hu/game-formats/thp/AfterCredits.thp Regards