First, the xing header frame is never added to the count, we have to increment the count. Secondly, there is a rounding error when calculating the frame duration, as spf*GST_SECOND/rate is not an integer (26122448.9) an it must be 26122449.
First, the xing header frame is never added to the count, we have to increment the count. Secondly, there is a rounding error when calculating the frame duration, as spf*GST_SECOND/rate is not an integer (26122448.9) an it must be 26122449.