It can be found in the Patches Tracker: [ 1334877 ] Solve the glav current video position always zero.
Short description:
In my system withint the glav tool the time position do
not work, i have found
and patched the problem.
After debugging i have found that the scanf function
only decode the first
parameters and fail for other 3 integer parameters.
The incriminated call is located at
lavtools/glav_main.c row 337
sscanf(inpbuff+1,"%lg/%d/%d/%d",&fps,&cur_pos,&total_frames,&cur_speed);
the inpbuff is @24.0004/52/32692/1
the sscanf extract 24, 0, 0, 0 and return 1 (only one
token correctly decoded)
It fail to decode the decimal part (.0004) of the
floating point number.
I have changed this function with a more complicated
splitting (without strtok)
and manual extraction.
The problem with .0004 remain but to not interfere with
integer tokens decoding.
With this all work very fine!!