[FFmpeg-devel] [PATCH] thp: set duration

Piotr Bandurski ami_stuff at o2.pl
Sun Dec 16 02:15:04 CET 2012


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





More information about the ffmpeg-devel mailing list