Properly generate pts for the frames sent to the encoder, avoid using private and deprecated AVStream.pts.