On 2010-08-16 15:12, Burkhard Plaum wrote: > > > This file is weird. I made again the mistake not to be prepared for all > stupidities, which can occur in media files.
that's why i love things like gmerlin-avdec: they make this their
problem :-)
> sampleseek.c, bgav_seek_video() called by bgav_seek_scaled() in sample
> accurate mode:
>
> if(time == s->out_time)
> {
> return;
> }
>
ok, i have added a little code on my side that relaxes this condition to
|time - s->out_time|<MAX_OFFSET ....
>> whereas this is the list of seeked and decoded frames
>> seeking is done like:
>> <snip>
>> dur=gavl_video_format_t->frame_duration; // 1000
>> scale=gavl_video_format_t->timescale); // 25000
>> // ...
>> req=frame*dur;
>
> Relying on a constant framerate is not good.
>
true but i have no clue how to update dynamically....
do i have to poll bgav_get_video_format() to get the most current
framerate, or is the returned gavt_video_format_t updated whenever a
change occurs?
thanks for looking
fgmadrs
IOhannes
smime.p7s
Description: S/MIME Cryptographic Signature
------------------------------------------------------------------------------ This SF.net email is sponsored by Make an app they can't live without Enter the BlackBerry Developer Challenge http://p.sf.net/sfu/RIM-dev2dev
_______________________________________________ Gmerlin-general mailing list [email protected] https://lists.sourceforge.net/lists/listinfo/gmerlin-general
