I want to specify fractional frame rate's like 23.797 or 59.94 when creating my encoder. Here is how I do it currently:
AVStream* st;
...
st->time_base = (AVRational){1, STREAM_FRAME_RATE };
But looking at ffmpeg's source code at rational.h we can see that AVRational struct takes int's instead of float's. So my 23.797 turns into 23 thus encoding wrong. How can I specify fps with floating numbers?